-
Notifications
You must be signed in to change notification settings - Fork 50
82 lines (77 loc) · 2.12 KB
/
Copy pathalpine-tests.yaml
File metadata and controls
82 lines (77 loc) · 2.12 KB
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
name: Build and test libucontext (Alpine)
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- arch: x86
platform: linux/386
compiler: gcc
- arch: x86_64
platform: linux/amd64
compiler: gcc
- arch: ppc64le
platform: linux/ppc64le
compiler: gcc
- arch: arm
platform: linux/arm/v7
compiler: gcc
- arch: aarch64
platform: linux/arm64
compiler: gcc
- arch: riscv64
platform: linux/riscv64
compiler: gcc
- arch: s390x
platform: linux/s390x
compiler: gcc
- arch: loongarch64
platform: linux/loong64
compiler: gcc
- arch: x86
platform: linux/386
compiler: clang
- arch: x86_64
platform: linux/amd64
compiler: clang
- arch: ppc64le
platform: linux/ppc64le
compiler: clang
- arch: arm
platform: linux/arm/v7
compiler: clang
- arch: aarch64
platform: linux/arm64
compiler: clang
- arch: riscv64
platform: linux/riscv64
compiler: clang
- arch: s390x
platform: linux/s390x
compiler: clang
- arch: loongarch64
platform: linux/loong64
compiler: clang
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up QEMU user emulation
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Build and run tests using Docker
run: |
docker run --rm \
--platform=${{matrix.platform}} \
-v "$PWD:/work" \
-w /work \
registry.alpinelinux.org/img/alpine:latest \
sh -lc '
apk add build-base ${{matrix.compiler}}
make check ARCH=${{matrix.arch}} CC=${{matrix.compiler}}
'