Skip to content

Commit

Permalink
updated LuaRocks version
Browse files Browse the repository at this point in the history
  • Loading branch information
FourierTransformer committed Dec 1, 2024
1 parent c656f05 commit 8514d2c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:

- name: Install LuaRocks
uses: leafo/gh-actions-luarocks@v4
with:
luarocksVersion: "3.10.0"

- name: Build
run: scripts/setup_local_luarocks.sh
Expand Down
7 changes: 5 additions & 2 deletions scripts/setup_local_luarocks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ set -e
# Navigate to the root of the repo
cd "$(dirname "$0")/.."

luarocks init --tree=./luarocks_tree

# Set the local LuaRocks path
LUAROCKS_TREE="$(pwd)/luarocks_tree"

# setup local LuaRocks
luarocks init --tree="$LUAROCKS_TREE"
PATH="$LUAROCKS_TREE/bin":"$PATH"
export PATH

# Install project dependencies from the rockspec
echo "Installing project dependencies..."
luarocks make --tree="$LUAROCKS_TREE"
Expand Down

0 comments on commit 8514d2c

Please sign in to comment.