forked from cisco/cjose
-
-
Notifications
You must be signed in to change notification settings - Fork 7
49 lines (43 loc) · 1.25 KB
/
archs.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
name: Archs
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: Build on ${{ matrix.arch }}
strategy:
matrix:
include:
- arch: armv7
distro: ubuntu20.04
- arch: aarch64
distro: ubuntu20.04
- arch: ppc64le
distro: ubuntu20.04
- arch: s390x
distro: ubuntu20.04
steps:
- uses: actions/checkout@v3
- uses: uraimo/run-on-arch-action@v2
name: Build
id: build
with:
arch: ${{ matrix.arch }}
distro: ${{ matrix.distro }}
install: |
apt-get update -y
apt-get install -y pkg-config make gcc gdb valgrind vim autoconf automake libtool
apt-get install -y libssl-dev libjansson-dev check
setup: |
mkdir -p "${PWD}/logs"
dockerRunArgs: |
--volume "${PWD}/logs:/logs"
env: |
logfilename: test-suite-${{ matrix.distro }}-${{ matrix.arch }}.log
run: |
./configure CFLAGS="-g -O0" LDFLAGS="-lrt"
make check
cat test/*.log >> "/logs/${logfilename}"
echo "Copied test logs to /logs/${logfilename}"
- name: Results
run: |
cat ${PWD}/logs/*.log