Skip to content

Commit bb4d061

Browse files
committed
Matrix.
1 parent 4a47317 commit bb4d061

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,19 @@ on:
88

99
jobs:
1010
build:
11+
name: Build sysroot for ${{ matrix.arch }}
1112
runs-on: ubuntu-latest
1213

14+
strategy:
15+
matrix:
16+
arch: [armv7, aarch64, riscv64, s390x, ppc64le]
17+
1318
steps:
1419
- uses: uraimo/run-on-arch-action@v2
1520
name: Run commands
1621
id: runcmd
1722
with:
18-
arch: aarch64
23+
arch: ${{ matrix.arch }}
1924
distro: ubuntu20.04
2025

2126
# Not required, but speeds up builds by storing container images in
@@ -50,13 +55,12 @@ jobs:
5055
5156
shell: /bin/bash
5257

53-
# Set an output parameter `uname` for use in subsequent steps
5458
run: |
5559
cd /
5660
shopt -s extglob
57-
tar c -zf /artifacts/sysroot.tar.gz *(bin|lib|include) usr/*(bin|lib|include) usr/local/*(bin|lib|include)
61+
tar c -zf /artifacts/sysroot-${{ matrix.arch }}.tar.gz *(bin|lib|include) usr/*(bin|lib|include) usr/local/*(bin|lib|include)
5862
5963
- uses: actions/upload-artifact@v3
6064
with:
6165
name: sysroot
62-
path: artifacts/sysroot.tar.gz
66+
path: artifacts/sysroot-${{ matrix.arch }}.tar.gz

0 commit comments

Comments
 (0)