Skip to content

Commit fee2856

Browse files
committed
ci: Run on ARM runners in addition to x64
1 parent cefc965 commit fee2856

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

.github/workflows/build-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
if: ${{ fromJson(needs.gen-matrix.outputs.matrix) }}
5252
needs: gen-matrix
5353
name: build
54-
runs-on: ubuntu-latest
54+
runs-on: ${{ matrix.os }}
5555
timeout-minutes: 60
5656
strategy:
5757
fail-fast: false

genMatrix.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,23 @@ const generateBuildMatrix = (filesAdded, filesModified, filesRenamed) => {
7171

7272
const entries = dockerfiles.map(getDockerfileMatrixEntry);
7373

74+
let includes = [];
75+
76+
entries.forEach(entry => {
77+
includes.push({
78+
version: entry.version,
79+
'variant': entry.variant,
80+
os: 'ubuntu-24.04'
81+
});
82+
includes.push({
83+
version: entry.version,
84+
'variant': entry.variant,
85+
os: 'ubuntu-24.04-arm'
86+
});
87+
});
7488
// Return null if there are no entries so we can skip the matrix step
75-
return entries.length
76-
? { include: entries }
89+
return includes.length
90+
? { include: includes }
7791
: null;
7892
};
7993

0 commit comments

Comments
 (0)