Skip to content

Commit e2e5604

Browse files
authored
ci: refactor to use matrix to switch runs-on (#418)
Use simpler solution to make maintenance easier. Signed-off-by: Daijiro Fukuda <[email protected]>
1 parent d95b424 commit e2e5604

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/docker-build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,15 @@ jobs:
3939
done
4040
build:
4141
needs: define-matrix
42-
runs-on: >-
43-
${{ (contains(matrix.component, 'arm64')) && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
4442
strategy:
4543
fail-fast: false
4644
matrix:
4745
component: ${{ fromJSON(needs.define-matrix.outputs.components) }}
46+
include:
47+
- runs-on: ubuntu-latest
48+
- runs-on: ubuntu-24.04-arm
49+
component: arm64
50+
runs-on: ${{ matrix.runs-on }}
4851
steps:
4952
- uses: actions/checkout@v4
5053
- name: Set up Docker Buildx

0 commit comments

Comments
 (0)