-
Notifications
You must be signed in to change notification settings - Fork 321
116 lines (111 loc) · 3.92 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
name: C/C++ CI
on: [push, pull_request]
jobs:
Tarball:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: install dependencies
run:
sudo apt-get update
&& sudo apt-get install g++ autoconf-archive libasound-dev doxygen
- name: automake
run:
(./autogen.sh || (cat config.log; false))
&& make distcheck && make clean
- name: Archive dist tarball artifact
uses: actions/upload-artifact@v2
with:
name: rtaudio-dev-tarball
path: rtaudio-*.tar.gz
Linux:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- api: jack
APIcmake: JACK
mesonapi: jack=enabled
deps: libjack-dev
- api: alsa
APIcmake: ALSA
mesonapi: alsa=enabled
deps: libasound-dev
- api: pulse
APIcmake: PULSE
mesonapi: pulse=enabled
deps: libpulse-dev
- api: oss
APIcmake: OSS
mesonapi: oss=true
deps: oss4-dev
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: install dependencies
run:
sudo apt-get update
&& sudo apt-get install g++ autoconf-archive cmake python3-pip ninja-build doxygen ${{matrix.deps}}
&& sudo pip install meson>=0.55.0
- name: automake
run:
env NOCONFIGURE=1 ./autogen.sh && mkdir bld-automake && cd bld-automake
&& (../configure --prefix=$PWD/inst --with-${{matrix.api}} || (cat config.log; false))
&& make V=1 && make check && make install && find inst
- name: CMake
run:
mkdir bld-cmake && cd bld-cmake
&& cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/inst -DRTAUDIO_API_OSS=OFF -DRTAUDIO_API_ALSA=OFF -DRTAUDIO_API_PULSE=OFF -DRTAUDIO_API_JACK=OFF -DRTAUDIO_API_${{matrix.APIcmake}}=ON && make VERBOSE=1 && make install && find inst
- name: Meson
run: meson bld-meson --prefix=$PWD/bld-meson/inst -Ddocs=true -Dalsa=disabled -Djack=disabled -Dpulse=disabled -Doss=false -D${{matrix.mesonapi}} && cd bld-meson && ninja -j1 -v install && find inst
MacOS:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: install dependencies
run: brew install autoconf-archive automake cmake meson
- name: automake
run:
env NOCONFIGURE=1 ./autogen.sh && mkdir bld-automake && cd bld-automake
&& (../configure --prefix=$PWD/inst || (cat config.log; false))
&& make V=1 && make check && make install && find inst
- name: CMake
run: mkdir bld-cmake && cd bld-cmake && cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/inst && make VERBOSE=1 && make install && find inst
- name: Meson
run: meson bld-meson --prefix=$PWD/bld-meson/inst && cd bld-meson && ninja -j1 -v install && find inst
MinGW:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- host: i686-w64-mingw32
api: dsound
- host: x86_64-w64-mingw32
api: dsound
- host: i686-w64-mingw32
api: asio
cppflags: -Wno-unused-but-set-variable
- host: x86_64-w64-mingw32
api: asio
cppflags: -Wno-unused-but-set-variable
- host: i686-w64-mingw32
api: wasapi
- host: x86_64-w64-mingw32
api: wasapi
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: install dependencies
run: sudo apt-get update && sudo apt-get install g++-mingw-w64 autoconf-archive
- name: automake
run:
env NOCONFIGURE=1 ./autogen.sh
&& mkdir bld-automake && cd bld-automake
&& (../configure --prefix=$PWD/inst --host=${{matrix.host}} --with-${{matrix.api}} CPPFLAGS=${{matrix.cppflags}} || (cat config.log; false))
&& make V=1 && make install && find inst