-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.3 KB
/
build.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: build
on: [push, workflow_dispatch]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "ubuntu-22.04"]
luaVersion: ["5.1", "5.2", "5.3", "5.4", "luajit"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- uses: leafo/gh-actions-lua@master
with:
luaVersion: ${{ matrix.luaVersion }}
buildCache: false
- uses: leafo/gh-actions-luarocks@master
- name: setup-linux
if: matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-22.04'
run: |
sudo apt-get install jackd libjack0 libjack-dev
- name: setup
run: |
luarocks --server=https://luarocks.org/dev install nocurses
luarocks --server=https://luarocks.org/dev install carray
luarocks --server=https://luarocks.org/dev install mtmsg
luarocks --server=https://luarocks.org/dev install auproc
- name: build
run: |
set -e
lua -v
luarocks make rockspecs/ljack-scm-0.rockspec
lua -e 'print(require"ljack"); print(require"ljack"._VERSION)'
- name: test
run: |
set -e
lua -v
jackd -r -ddummy -r44100 -p1024 &
sleep 2
echo "=============================================="
lua examples/example01.lua