forked from baresip/re
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.16 KB
/
run-on-arch.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
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build_job:
# The host should always be linux
runs-on: ubuntu-22.04
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}
strategy:
matrix:
include:
- arch: aarch64
distro: bullseye
- arch: armv7
distro: ubuntu22.04
steps:
- uses: actions/checkout@v4
- uses: uraimo/run-on-arch-action@v2
name: Build artifact
id: build
with:
arch: ${{ matrix.arch }}
distro: ${{ matrix.distro }}
base_image: '--platform=linux/aarch64 ubuntu:20.04'
# Not required, but speeds up builds
githubToken: ${{ github.token }}
install: |
case "${{ matrix.distro }}" in
ubuntu*|jessie|stretch|buster|bullseye)
apt-get update -q -y
apt-get install -q -y cmake gcc g++ libssl-dev ninja-build
;;
esac
run: |
cmake -G Ninja -B build -DCMAKE_C_FLAGS="-Werror"
cmake --build build -j --target retest
./build/test/retest -r -v