File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,14 +43,26 @@ jobs:
4343 uname -a
4444 pwd
4545 echo "-----------------------------------------------------------"
46- pacboy --noconfirm -Sy lua:p lua-luarocks:p
46+ # MSYS2's default "lua" package is Lua 5.5 now, but the rockspecs
47+ # require lua <= 5.4: install lua54 and switch luarocks to it
48+ # (there is no separate lua54-luarocks package)
49+ pacboy --noconfirm -Sy lua54:p lua-luarocks:p
50+ echo "-----------------------------------------------------------"
51+ luarocks config lua_version 5.4
52+ luarocks config variables.LUA /mingw64/bin/lua5.4.exe
53+ luarocks config variables.LUA_INCDIR /mingw64/include/lua5.4
54+ luarocks config variables.LUA_LIBDIR /mingw64/bin
55+ luarocks config variables.LUALIB lua54.dll
56+ # let plain "lua" invoke lua 5.4 in the following steps
57+ cp -f /mingw64/bin/lua5.4.exe /mingw64/bin/lua.exe
4758 echo "-----------------------------------------------------------"
4859 type lua
4960 type luarocks
5061 echo "-----------------------------------------------------------"
5162 lua -v
5263 echo "-----------------------------------------------------------"
5364 luarocks --version
65+ luarocks config | head -60
5466 echo "-----------------------------------------------------------"
5567 luarocks install luafilesystem
5668
Original file line number Diff line number Diff line change 2222 - name : setup linux
2323 if : matrix.os == 'ubuntu-latest'
2424 run : |
25- sudo apt-get install xvfb libglu1-mesa-dev freeglut3-dev mesa-common-dev x11-utils
25+ sudo apt-get install xvfb libglu1-mesa-dev freeglut3-dev mesa-common-dev x11-utils libcairo2-dev
2626
2727 Xvfb :19 -screen 0 1024x768x16 &
2828 echo "DISPLAY=:19" >> $GITHUB_ENV
3434 if : matrix.os == 'macos-latest'
3535 run : |
3636 brew install cairo glew glfw
37+ luarocks config variables.CAIRO_DIR "$(brew --prefix cairo)"
3738
3839 - name : setup common
3940 run : |
You can’t perform that action at this time.
0 commit comments