Skip to content

Commit f6cc993

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

2 files changed

Lines changed: 3 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ const getDockerfileMatrixEntry = (file) => {
6969
const generateBuildMatrix = (filesAdded, filesModified, filesRenamed) => {
7070
const dockerfiles = [...new Set(getAffectedDockerfiles(filesAdded, filesModified, filesRenamed))];
7171

72-
const entries = dockerfiles.map(getDockerfileMatrixEntry);
73-
72+
let entries = dockerfiles.map(getDockerfileMatrixEntry);
73+
entries.os = [ 'ubuntu-24.04', 'ubuntu-24.04-arm' ]
7474
// Return null if there are no entries so we can skip the matrix step
7575
return entries.length
7676
? { include: entries }

0 commit comments

Comments
 (0)