Skip to content

Commit 3218792

Browse files
committed
Clean up QEMU CI
Use a matrix containing objects rather than a matrix containing keys that we try to use to define arrays of things. Fix a typo in ARCH. Too much Arm made it AARCH.
1 parent 6055669 commit 3218792

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,23 +90,23 @@ jobs:
9090
strategy:
9191
matrix:
9292
build-type: [ Release, Debug ]
93-
arch: [ arm64, armhf, ppc64el ]
94-
include:
95-
- arch: armhf
93+
arch:
94+
- name: armhf
9695
system-processor: arm
9796
triple: arm-linux-gnueabihf
9897
rtld: ld-linux-armhf.so.3
99-
- arch: arm64
98+
- name: arm64
10099
system-processor: aarch64
101100
triple: aarch64-linux-gnu
102101
rtld: ld-linux-aarch64.so.1
103-
- arch: ppc64el
102+
- name: ppc64el
104103
system-processor: powerpc64le
105104
triple: powerpc64le-linux-gnu
106105
rtld: ld64.so.2
107106
# Don't abort runners if a single one fails
108107
fail-fast: false
109108
runs-on: ubuntu-latest
109+
name: Cross-build for ${{ matrix.arch.triple }}
110110
steps:
111111
- uses: actions/checkout@v2
112112
- name: Install cross-compile toolchain and QEMU
@@ -116,12 +116,12 @@ jobs:
116116
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
117117
sudo add-apt-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-13 main"
118118
sudo apt update
119-
sudo apt install libstdc++-9-dev-${{ matrix.arch }}-cross qemu-user ninja-build clang-13 lld-13
119+
sudo apt install libstdc++-9-dev-${{ matrix.arch.name }}-cross qemu-user ninja-build clang-13 lld-13
120120
- name: Configure
121121
run: >
122-
RTLD_NAME=${{ matrix.rtld }}
123-
AARCH=${{ matrix.arch }}
124-
TRIPLE=${{ matrix.triple}}
122+
RTLD_NAME=${{ matrix.arch.rtld }}
123+
ARCH=${{ matrix.arch.system-processor }}
124+
TRIPLE=${{ matrix.arch.triple}}
125125
cmake
126126
-B ${{github.workspace}}/build
127127
-DCMAKE_BUILD_TYPE=${{matrix.build-type}}

0 commit comments

Comments
 (0)