File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed
Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and test libucontext
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ test :
9+ runs-on : ubuntu-latest
10+ strategy :
11+ fail-fast : false
12+ matrix :
13+ include :
14+ - arch : x86
15+ platform : linux/386
16+ image : alpine:latest
17+ - arch : x86_64
18+ platform : linux/amd64
19+ image : alpine:latest
20+ - arch : ppc64le
21+ platform : linux/ppc64le
22+ image : alpine:latest
23+ - arch : arm
24+ platform : linux/arm/v7
25+ image : alpine:latest
26+ - arch : aarch64
27+ platform : linux/arm64
28+ image : alpine:latest
29+ - arch : riscv64
30+ platform : linux/riscv64
31+ image : alpine:latest
32+ - arch : s390x
33+ platform : linux/s390x
34+ image : alpine:latest
35+ # Blocked by https://github.com/tonistiigi/binfmt/issues/133
36+ # - arch: loongarch64
37+ # platform: linux/loong64
38+ # image: registry.alpinelinux.org/alpine:latest
39+
40+ steps :
41+ - name : Checkout
42+ uses : actions/checkout@v6
43+
44+ - name : Set up QEMU user emulation
45+ uses : docker/setup-qemu-action@v3
46+ with :
47+ platforms : all
48+
49+ - name : Build and run tests using Docker
50+ run : |
51+ docker run --rm \
52+ --platform=${{matrix.platform}} \
53+ -v "$PWD:/work" \
54+ -w /work \
55+ ${{matrix.image}} \
56+ sh -lc '
57+ apk add build-base
58+ make check ARCH=${{matrix.arch}}
59+ '
You can’t perform that action at this time.
0 commit comments