Skip to content

Commit 5570963

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

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/docker-build.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,19 @@ 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+
strategy:
47+
fail-fast: false
48+
matrix:
49+
component: ${{ fromJSON(needs.define-matrix.outputs.components) }}
50+
include:
51+
- runs-on: ubuntu-latest
52+
- runs-on: ubuntu-24.04-arm
53+
component: arm64
54+
runs-on: ${{ matrix.runs-on }}
4855
steps:
4956
- uses: actions/checkout@v4
5057
- name: Set up Docker Buildx

0 commit comments

Comments
 (0)