-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (50 loc) · 1.69 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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"
# exclude:
# # LuaJIT 2.0 doesn't support the aarch64 architecture, meaning it
# # won't even build on macOS 14 and higher.
# - operating-system: macos-latest
# lua-version: luajit-2.0.5
# include:
# # Since LuaJIT 2.0 doesn't run on macOS 14+, test it on macOS 13.
# - operating-system: macos-13
# lua-version: luajit-2.0.5
steps:
- uses: actions/checkout@v3
- 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
- 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