File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ name: CI
33on : [ push, pull_request ]
44
55jobs :
6- CI :
7- name : " Linux x64 (Ubuntu 22.04) "
6+ CI-Linux-LuaJIT :
7+ name : " Linux x64 with LuaJIT "
88 runs-on : ubuntu-22.04
99
1010 steps :
1111 - name : Checkout code
12- uses : actions/checkout@v3
12+ uses : actions/checkout@v4
1313
1414 - name : Install dependencies
1515 run : |
2323
2424 - name : Install LuaRocks
2525 env :
26- LUAROCKS_VERSION : 3.9.1
26+ LUAROCKS_VERSION : 3.9.2
2727 run :
2828 .ci/install-luarocks.sh
2929 --with-lua=/usr/local/openresty/luajit/
4141
4242 - name : Test with busted
4343 run : make test
44+
45+ CI-Linux-Lua-54 :
46+ name : " Linux x64 with Lua 5.4"
47+ runs-on : ubuntu-22.04
48+
49+ steps :
50+ - name : Checkout code
51+ uses : actions/checkout@v4
52+
53+ - name : Install dependencies
54+ run : |
55+ sudo apt install lua5.4 liblua5.4-dev libvips-dev
56+
57+ - name : Install LuaRocks
58+ env :
59+ LUAROCKS_VERSION : 3.9.2
60+ run :
61+ .ci/install-luarocks.sh
62+ --with-lua=/usr/
63+ --with-lua-include=/usr/include/lua5.4
64+
65+ - name : Prepare environment
66+ run : |
67+ echo "/usr/bin:$HOME/luarocks/bin" >> $GITHUB_PATH
68+
69+ - name : Install Lua modules
70+ run : make dev
71+
72+ - name : Install ffi
73+ run : make ffi
74+
75+ - name : Lint with luacheck
76+ run : make lint
77+
78+ - name : Test with busted
79+ run : make test
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ DEV_ROCKS = "busted 2.1.1" "luacheck 1.0.0"
22BUSTED_ARGS ?= -o gtest -v
33TEST_CMD ?= busted $(BUSTED_ARGS )
44
5- .PHONY : dev lint test
5+ .PHONY : dev ffi lint test
66
77dev :
88 @for rock in $(DEV_ROCKS ) ; do \
1414 fi \
1515 done ;
1616
17+ ffi :
18+ @luarocks install luaffi-tkl
19+
1720lint :
1821 @luacheck -q .
1922
You can’t perform that action at this time.
0 commit comments