-
-
Notifications
You must be signed in to change notification settings - Fork 216
317 lines (249 loc) · 8.01 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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
name: "build"
on:
push:
branches:
- master
- develop
tags:
- v*
pull_request:
branches:
- master
- develop
workflow_dispatch:
schedule:
- cron: '0 0 * * 1'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
linux-x86_64:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- script: linux-x86_64/ubuntu-22.04
image: rocstreaming/env-ubuntu:22.04
- script: linux-x86_64/ubuntu-20.04
image: rocstreaming/env-ubuntu:20.04
- script: linux-x86_64/ubuntu-18.04
image: rocstreaming/env-ubuntu:18.04
- script: linux-x86_64/ubuntu-16.04
image: rocstreaming/env-ubuntu:16.04
- script: linux-x86_64/ubuntu-14.04
image: rocstreaming/env-ubuntu:14.04
- script: linux-x86_64/debian
image: rocstreaming/env-debian
- script: linux-x86_64/fedora
image: rocstreaming/env-fedora
- script: linux-x86_64/opensuse
image: rocstreaming/env-opensuse
- script: linux-x86_64/archlinux
image: rocstreaming/env-archlinux
- script: linux-x86_64/alpine
image: rocstreaming/env-alpine
name: ${{ matrix.script }}
steps:
- name: Pull docker image
run: docker pull ${{ matrix.image }}
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build and test
run: |
scripts/ci_checks/docker.sh ${{ matrix.image }} scripts/ci_checks/${{ matrix.script }}.sh
- name: Handle failure
if: failure()
run: |
scripts/ci_checks/failure.sh
linux-arm:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- script: linux-arm/aarch64-linux-gnu-gcc-7.4
image: rocstreaming/toolchain-aarch64-linux-gnu:gcc-7.4
- script: linux-arm/arm-linux-gnueabihf-gcc-4.9
image: rocstreaming/toolchain-arm-linux-gnueabihf:gcc-4.9
- script: linux-arm/arm-bcm2708hardfp-linux-gnueabi-gcc-4.7
image: rocstreaming/toolchain-arm-bcm2708hardfp-linux-gnueabi:gcc-4.7
name: ${{ matrix.script }}
steps:
- name: Pull docker image
run: docker pull ${{ matrix.image }}
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build and test
run: |
scripts/ci_checks/docker.sh ${{ matrix.image }} scripts/ci_checks/${{ matrix.script }}.sh
- name: Handle failure
if: failure()
run: |
scripts/ci_checks/failure.sh
linux-checks:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- script: linux-checks/conditional-build
image: rocstreaming/env-ubuntu-minimal
- script: linux-checks/static-shared
image: rocstreaming/env-ubuntu-minimal
- script: linux-checks/debug-build
image: rocstreaming/env-ubuntu-minimal
- script: linux-checks/sanitizers
image: rocstreaming/env-ubuntu
- script: linux-checks/valgrind
image: rocstreaming/env-ubuntu
- script: linux-checks/check-formatting
image: rocstreaming/env-ubuntu
- script: linux-checks/pulseaudio-versions
image: rocstreaming/env-ubuntu
name: ${{ matrix.script }}
steps:
- name: Pull docker image
run: docker pull ${{ matrix.image }}
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build and test
run: |
scripts/ci_checks/docker.sh ${{ matrix.image }} scripts/ci_checks/${{ matrix.script }}.sh
- name: Handle failure
if: failure()
run: |
scripts/ci_checks/failure.sh
android-linux:
strategy:
fail-fast: false
matrix:
include:
- image: rocstreaming/toolchain-linux-android:ndk21
toolchain: aarch64-linux-android29
shortname: android29-aarch64
- image: rocstreaming/toolchain-linux-android:ndk21
toolchain: armv7a-linux-androideabi29
shortname: android29-armv7a
- image: rocstreaming/toolchain-linux-android:ndk21
toolchain: x86_64-linux-android29
shortname: android29-x86_64
- image: rocstreaming/toolchain-linux-android:ndk21
toolchain: i686-linux-android29
shortname: android29-i686
runs-on: ubuntu-latest
name: ${{ matrix.shortname }}/linux
steps:
- name: Pull docker image
run: docker pull ${{ matrix.image }}
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build
run: |
scripts/ci_checks/docker.sh ${{ matrix.image }} \
scripts/ci_checks/android/linux.sh ${{ matrix.toolchain }}
- name: Handle failure
if: failure()
run: |
scripts/ci_checks/failure.sh
android-macos:
strategy:
fail-fast: false
matrix:
include:
- abi: x86_64
api: 29
ndk: 25.2.9519653
build_tools: 28.0.3
cmake: 3.10.2.4988404
avd_abi: x86_64
avd_img: default
runs-on: macos-latest
env:
ABI: ${{ matrix.abi }}
API: ${{ matrix.api }}
NDK_VERSION: ${{ matrix.ndk }}
name: android${{ matrix.api }}-${{ matrix.abi }}/macos
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Android components
uses: maxim-lobanov/setup-android-tools@v1
with:
cache: true
packages: |
platforms;android-${{ matrix.api }}
build-tools;${{ matrix.build_tools }}
ndk;${{ matrix.ndk }}
cmake;${{ matrix.cmake }}
system-images;android-${{ matrix.api }};${{ matrix.avd_img }};${{ matrix.avd_abi }}
emulator
- name: Install system dependencies
run: |
scripts/ci_checks/android/macos.sh
- name: Build
run: |
scripts/android_emu/run.sh build
- name: Run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api }}
arch: ${{ matrix.avd_abi }}
target: ${{ matrix.avd_img }}
avd-name: roc_device
ndk: ${{ matrix.ndk }}
cmake: ${{ matrix.cmake }}
force-avd-creation: false
emulator-options: -no-audio -no-boot-anim -no-window
disable-animations: true
script: |
scripts/android_emu/run.sh prep
scripts/android_emu/run.sh test
- name: Handle failure
if: failure()
run: |
scripts/ci_checks/failure.sh
macos:
strategy:
fail-fast: false
matrix:
include:
- macos-arch: x86_64
macos-version: 11
script: standard-build
- macos-arch: x86_64
macos-version: 12
script: standard-build
- macos-arch: x86_64
macos-version: 13
script: standard-build
- macos-arch: x86_64
macos-version: 13
script: build-3rdparty
- macos-arch: x86_64
macos-version: 13
script: universal-binaries
runs-on: macos-${{ matrix.macos-version }}
name: macos${{ matrix.macos-version }}-${{ matrix.macos-arch }}/${{ matrix.script }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build and test
run: |
scripts/ci_checks/macos/${{ matrix.script }}.sh
- name: Handle failure
if: failure()
run: |
scripts/ci_checks/failure.sh