-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (50 loc) · 1.62 KB
/
Copy pathbuild.yml
File metadata and controls
62 lines (50 loc) · 1.62 KB
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
53
54
55
56
57
58
59
60
61
62
name: build
on: [push, workflow_dispatch]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, ubuntu-latest, macos-latest]
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 }}
- uses: leafo/gh-actions-luarocks@master
with:
luarocksVersion: "3.9.2"
- name: setup-linux
if: matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install librtaudio-dev jackd libjack0 libjack-dev
- name: setup-macos
if: matrix.os == 'macos-latest'
run: |
sw_vers -productVersion
brew install rtaudio
- name: setup
run: |
luarocks --version
luarocks install inspect
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/lrtaudio-scm-0.rockspec
lua -e 'print(require"lrtaudio"); print(require"lrtaudio"._VERSION)'
lua -e 'print("RtAudio", require"lrtaudio".getRtAudioVersion());'
- name: test
run: |
set -e
lua -v
jackd -r -ddummy -r44100 -p1024 &
sleep 2
echo "=============================================="
lua examples/example01.lua