Skip to content

Commit e37ed49

Browse files
committed
ci: Install lua-compat-5.3 on lua5.1 thru lua5..5
1 parent 9c6f75a commit e37ed49

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/compat53-tests.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,32 @@ jobs:
6868
- name: compare script output
6969
run: diff old.txt new.txt || true
7070

71+
compat53-install:
72+
strategy:
73+
fail-fast: false # https://github.com/actions/runner-images#available-images
74+
matrix: # https://www.lua.org/versions.html
75+
os: [ubuntu-latest]
76+
lua-version: [5.1, 5.2, 5.3, 5.4, 5.5]
77+
include:
78+
- os: macos-latest
79+
lua-version: 5.1
80+
- os: macos-latest
81+
lua-version: 5.5
82+
runs-on: ${{ matrix.os }}
83+
steps:
84+
- run: echo "${{ runner.os }} on ${{ runner.arch }}"
85+
- uses: actions/checkout@v7
86+
- uses: luarocks/gh-actions-lua@master
87+
with:
88+
luaVersion: ${{ matrix.lua-version }}
89+
- uses: luarocks/gh-actions-luarocks@master
90+
with:
91+
luaRocksVersion: "3.13.0"
92+
- run: lua -v && luarocks --version
93+
# Install the local version of compat53.
94+
- run: luarocks --local make rockspecs/compat53-scm-1.rockspec
95+
- run: luarocks list && luarocks show compat53
96+
- run: luarocks --local remove compat53
97+
# Install the public version of compat53.
98+
- run: luarocks install --check-lua-versions compat53
99+
- run: luarocks list && luarocks show compat53

0 commit comments

Comments
 (0)