diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 67646fd..4b669a2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/scripts/setup_local_luarocks.sh b/scripts/setup_local_luarocks.sh index b09d664..9ce5cc1 100755 --- a/scripts/setup_local_luarocks.sh +++ b/scripts/setup_local_luarocks.sh @@ -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"