Minor tweaks in CI stuff #557
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 ] | |
jobs: | |
testing: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
fail-fast: false | |
matrix: | |
operating-system: | |
- ubuntu-latest | |
- macos-13 | |
lua-version: | |
- "5.1" | |
- "5.2" | |
- "5.3" | |
- "5.4" | |
- "luajit-2.0.5" | |
- "luajit-2.1.0-beta3" | |
unicorn-version: | |
- "1.0.3" | |
- "2.0.1.post1" | |
steps: | |
- uses: actions/[email protected] | |
with: | |
persist-credentials: false | |
- name: Install Lua | |
uses: leafo/gh-actions-lua@v10 | |
with: | |
luaVersion: ${{ matrix.lua-version }} | |
# We need LUAJIT_ENABLE_GC64 on MacOS: https://github.com/moonjit/moonjit/issues/121 | |
luaCompileFlags: XCFLAGS="-DLUAJIT_ENABLE_GC64=1" | |
- name: Install LuaRocks | |
# Note: This is a fork of the original by leafo. Switch back to that once | |
# https://github.com/leafo/gh-actions-luarocks/pull/14 has been merged. | |
uses: hishamhm/gh-actions-luarocks@5013277f6f115c27478f18c1f647f8de98390628 | |
with: | |
luaRocksVersion: "3.11.1" | |
- name: Install Unicorn | |
run: make -C tools/ci install_unicorn UNICORN_VERSION=${{ matrix.unicorn-version }} | |
- name: Environment | |
run: luarocks config | |
- name: Install Binding | |
run: luarocks build | |
- name: Run tests | |
run: luarocks test |