Skip to content

Commit 5ad24a6

Browse files
authored
Update build.yml
- modify matrix
1 parent d8ae648 commit 5ad24a6

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ jobs:
177177
build-and-push-docker-images:
178178
name: Build and push container images
179179
if: ${{ github.event_name != 'pull_request' }}
180-
runs-on: ubuntu-latest
180+
runs-on: ${{ matrix.runner }}
181181

182182
permissions:
183183
contents: read
@@ -189,7 +189,12 @@ jobs:
189189
strategy:
190190
matrix:
191191
variant: [musa, sycl, vulkan, cuda]
192-
192+
platform: [linux/amd64]
193+
runner: [ubuntu-latest]
194+
include:
195+
- variant: cuda-spark
196+
platform: linux/arm64
197+
runner: ubuntu-24.04-arm
193198
env:
194199
REGISTRY: ghcr.io
195200
IMAGE_NAME: ${{ github.repository }}
@@ -243,7 +248,7 @@ jobs:
243248
uses: docker/build-push-action@v6
244249
with:
245250
context: .
246-
platforms: linux/amd64
251+
platforms: ${{ matrix.platform }}
247252
push: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
248253
file: Dockerfile.${{ matrix.variant }}
249254
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.BRANCH_NAME }}-${{ matrix.variant }}

0 commit comments

Comments
 (0)