-
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (36 loc) · 1.19 KB
/
linux.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
name: Linux
on:
pull_request:
push:
release:
types: [published]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
luaVersion: ["5.4.1", "5.1.5", "luajit-openresty"]
luarocksVersion: ["3.5.0", "3.0.1"]
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Linux-${{ matrix.luaVersion }}-${{ matrix.luarocksVersion }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v2
- uses: leafo/gh-actions-lua@v8
with:
luaVersion: ${{ matrix.luaVersion }}
- uses: leafo/gh-actions-luarocks@v4
with:
luarocksVersion: ${{ matrix.luarocksVersion }}
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: branch@dev
- name: Tests
run: |
luarocks install --local rockspecs/example1-1.0-1.rockspec
lua -e "print(require(\"example1.hello\"))"
lua -e "print(require(\"example1.test\"))"
luarocks install --local rockspecs/example2-1.0-1.rockspec
lua -e "print(require(\"example2.hello\"))"
lua -e "print(require(\"example2.test\"))"