File tree Expand file tree Collapse file tree 2 files changed +44
-5
lines changed Expand file tree Collapse file tree 2 files changed +44
-5
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ name: CI
3
3
on : [ push, pull_request ]
4
4
5
5
jobs :
6
- CI :
7
- name : " Linux x64 (Ubuntu 22.04) "
6
+ CI-Linux-LuaJIT :
7
+ name : " Linux x64 with LuaJIT "
8
8
runs-on : ubuntu-22.04
9
9
10
10
steps :
11
11
- name : Checkout code
12
- uses : actions/checkout@v3
12
+ uses : actions/checkout@v4
13
13
14
14
- name : Install dependencies
15
15
run : |
23
23
24
24
- name : Install LuaRocks
25
25
env :
26
- LUAROCKS_VERSION : 3.9.1
26
+ LUAROCKS_VERSION : 3.9.2
27
27
run :
28
28
.ci/install-luarocks.sh
29
29
--with-lua=/usr/local/openresty/luajit/
41
41
42
42
- name : Test with busted
43
43
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"
2
2
BUSTED_ARGS ?= -o gtest -v
3
3
TEST_CMD ?= busted $(BUSTED_ARGS )
4
4
5
- .PHONY : dev lint test
5
+ .PHONY : dev ffi lint test
6
6
7
7
dev :
8
8
@for rock in $(DEV_ROCKS ) ; do \
14
14
fi \
15
15
done ;
16
16
17
+ ffi :
18
+ @luarocks install luaffi-tkl
19
+
17
20
lint :
18
21
@luacheck -q .
19
22
You can’t perform that action at this time.
0 commit comments