-
Notifications
You must be signed in to change notification settings - Fork 25
57 lines (47 loc) · 1.21 KB
/
ubuntu.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
name: ubuntu
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-native:
# This job runs on x86_64 directly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: make check
run: make check
build-other-arch:
# This job runs on other architectures via qemu
runs-on: ubuntu-latest
strategy:
matrix:
arch: [aarch64, ppc64le, s390x]
include:
- arch: aarch64
distro: ubuntu22.04
platform-name: linux/arm64
- arch: ppc64le
distro: ubuntu22.04
platform-name: linux/ppc64le
- arch: s390x
distro: ubuntu22.04
platform-name: linux/s390x
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ matrix.platform-name }}
- name: Build on ${{ matrix.arch }}
uses: uraimo/run-on-arch-action@v2
with:
arch: ${{ matrix.arch }}
distro: ${{ matrix.distro }}
githubToken: ${{ github.token }}
install: |
apt-get update
apt-get install -y make gcc g++
run: |
make check