Add Lua 5.4 test on Ubuntu #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [ push, pull_request ] | |
jobs: | |
CI-Linux-LuaJIT: | |
name: "Linux x64 with LuaJIT" | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
# Use the official APT repositories from OpenResty to install LuaJIT | |
curl -sSL "https://openresty.org/package/pubkey.gpg" | sudo gpg --dearmor -o /usr/share/keyrings/openresty.gpg | |
echo "deb [signed-by=/usr/share/keyrings/openresty.gpg] https://openresty.org/package/ubuntu $(lsb_release -sc) main" | \ | |
sudo tee /etc/apt/sources.list.d/openresty.list > /dev/null | |
# Install dependencies | |
sudo apt-get update | |
sudo apt-get install --no-install-recommends openresty libvips-dev | |
- name: Install LuaRocks | |
env: | |
LUAROCKS_VERSION: 3.9.2 | |
run: | |
.ci/install-luarocks.sh | |
--with-lua=/usr/local/openresty/luajit/ | |
--with-lua-include=/usr/local/openresty/luajit/include/luajit-2.1 | |
- name: Prepare environment | |
run: | | |
echo "/usr/local/openresty/luajit/bin:$HOME/luarocks/bin" >> $GITHUB_PATH | |
- name: Install Lua modules | |
run: make dev | |
- name: Lint with luacheck | |
run: make lint | |
- name: Test with busted | |
run: make test | |
CI-Linux-Lua-54: | |
name: "Linux x64 with Lua 5.4" | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt install lua5.4 liblua5.4-dev libvips-dev | |
- name: Install LuaRocks | |
env: | |
LUAROCKS_VERSION: 3.9.2 | |
run: | |
.ci/install-luarocks.sh | |
--with-lua=/usr/ | |
--with-lua-include=/usr/include/lua5.4 | |
- name: Prepare environment | |
run: | | |
echo "/usr/bin:$HOME/luarocks/bin" >> $GITHUB_PATH | |
- name: Install Lua modules | |
run: make dev | |
- name: Install ffi | |
run: make ffi | |
- name: Lint with luacheck | |
run: make lint | |
- name: Test with busted | |
run: make test |