Skip to content

Commit 388c305

Browse files
committed
github workflows fixed
1 parent d6a7d28 commit 388c305

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/test-windows.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff 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

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
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
@@ -34,6 +34,7 @@ jobs:
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: |

0 commit comments

Comments
 (0)