Skip to content

Commit f370978

Browse files
committed
Add Lua 5.4 test on Ubuntu
1 parent 84dd376 commit f370978

File tree

2 files changed

+44
-5
lines changed

2 files changed

+44
-5
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ name: CI
33
on: [ push, pull_request ]
44

55
jobs:
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: |
@@ -23,7 +23,7 @@ jobs:
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/
@@ -41,3 +41,39 @@ jobs:
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

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ DEV_ROCKS = "busted 2.1.1" "luacheck 1.0.0"
22
BUSTED_ARGS ?= -o gtest -v
33
TEST_CMD ?= busted $(BUSTED_ARGS)
44

5-
.PHONY: dev lint test
5+
.PHONY: dev ffi lint test
66

77
dev:
88
@for rock in $(DEV_ROCKS) ; do \
@@ -14,6 +14,9 @@ dev:
1414
fi \
1515
done;
1616

17+
ffi:
18+
@luarocks install luaffi-tkl
19+
1720
lint:
1821
@luacheck -q .
1922

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy