Skip to content

Commit

Permalink
Force luarocks to use the correct include dir for luajit in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
neilcook committed Oct 18, 2024
1 parent a49879e commit ebbb296
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/gh_actions/setup_lua.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ cd $GITHUB_WORKSPACE

luarocks --version

if [ "$LUA" == "luajit2.0" ]; then
luarocks config variables.LUA_INCDIR "$LUA_HOME_DIR/include/luajit-2.0"
elif [ "$LUA" == "luajit2.1" ]; then
luarocks config variables.LUA_INCDIR "$LUA_HOME_DIR/include/luajit-2.1"
fi

rm -rf $LUAROCKS_BASE

if [ "$LUAJIT" == "yes" ]; then
Expand Down

0 comments on commit ebbb296

Please sign in to comment.