From c5f2a32c96fe7284f6e4ab925f9e39215c18bb14 Mon Sep 17 00:00:00 2001 From: Ramon Roche Date: Thu, 27 Feb 2025 08:46:57 -0800 Subject: [PATCH] ci: build each platform on its own arch --- .github/workflows/dev_container.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dev_container.yml b/.github/workflows/dev_container.yml index c1bdb341d8..23b63eed14 100644 --- a/.github/workflows/dev_container.yml +++ b/.github/workflows/dev_container.yml @@ -16,8 +16,11 @@ on: jobs: build: - name: Build and Push Container - runs-on: [runs-on,runner=8cpu-linux-x64,image=ubuntu24-full-x64,"run-id=${{ github.run_id }}",spot=false,extras=s3-cache] + name: Build and Push Container (${{ matrix.arch }}) + strategy: + matrix: + arch: [x64, arm64] + runs-on: [runs-on,"runner=8cpu-linux-${{ matrix.arch }}","image=ubuntu24-full-${{ matrix.arch }}","run-id=${{ github.run_id }}",spot=false,extras=s3-cache] steps: - uses: runs-on/action@v1 - uses: actions/checkout@v4 @@ -66,7 +69,7 @@ jobs: context: Tools/setup tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - platforms: linux/amd64 + platforms: linux/${{ matrix.arch == 'x64' && 'amd64' || 'arm64' }} load: true push: false cache-from: type=gha @@ -95,7 +98,7 @@ jobs: context: Tools/setup tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - platforms: linux/amd64,linux/arm64 + platforms: linux/${{ matrix.arch == 'x64' && 'amd64' || 'arm64' }} provenance: mode=max push: true cache-from: type=gha