Skip to content

Commit 128bf86

Browse files
authored
Merge pull request bootc-dev#673 from cgwalters/ci-arch
ci: Add cross-arch builds
2 parents 06563be + bc26425 commit 128bf86

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/cross.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Cross build
2+
3+
on: [push, pull_request]
4+
5+
permissions:
6+
actions: read
7+
8+
jobs:
9+
crossarch-check:
10+
runs-on: ubuntu-latest
11+
name: Build on ${{ matrix.arch }}
12+
13+
strategy:
14+
matrix:
15+
include:
16+
- arch: aarch64
17+
distro: ubuntu_latest
18+
- arch: s390x
19+
distro: ubuntu_latest
20+
- arch: ppc64le
21+
distro: ubuntu_latest
22+
steps:
23+
- uses: actions/checkout@v3.0.2
24+
with:
25+
submodules: true
26+
set-safe-directory: true
27+
28+
- uses: uraimo/run-on-arch-action@v2.2.0
29+
name: Build
30+
id: build
31+
with:
32+
arch: ${{ matrix.arch }}
33+
distro: ${{ matrix.distro }}
34+
35+
githubToken: ${{ github.token }}
36+
37+
run: |
38+
set -xeu
39+
apt update -y
40+
apt install -y gcc make cargo libssl-dev pkg-config
41+
cargo check

0 commit comments

Comments
 (0)