From 1350104065748b08e1afbe142e71ba5220353dbb Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani Date: Mon, 20 Oct 2025 16:19:35 -0700 Subject: [PATCH] ci: release per-arch binaries We release binaries from a different workflow. This needs to become arch aware. Signed-off-by: Ramkumar Chinchani --- .github/workflows/build.yaml | 4 ++-- .github/workflows/release.yaml | 14 ++++++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4d831010..b53c62d1 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -122,5 +122,5 @@ jobs: - uses: actions/cache@v4 id: restore-build with: - path: stacker - key: ${{ inputs.build-id }} + path: stacker-${{ matrix.platform }} + key: ${{ inputs.build-id }}-${{ matrix.platform }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0c66fbea..c9148afd 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -31,21 +31,27 @@ jobs: codecov_token: ${{ secrets.CODECOV_TOKEN }} release: name: "Tagged Release" - runs-on: ubuntu-24.04 + strategy: + fail-fast: true + matrix: + platform: + - linux-amd64 # ubuntu 24.04 + - linux-arm64 # ubuntu 24.04-arm64 + runs-on: ${{ matrix.platform == 'linux-amd64' && 'ubuntu-24.04' || matrix.platform == 'linux-arm64' && 'ubuntu-24.04-arm' }} # needs ci for the cached stacker binary needs: [build-id, ci] steps: - uses: actions/cache@v4 id: restore-build with: - path: stacker - key: ${{needs.build-id.outputs.build-id}} + path: stacker-${{ matrix.platform }} + key: ${{needs.build-id.outputs.build-id}}-${{ matrix.platform }} - if: github.event_name == 'release' && github.event.action == 'published' name: Publish artifacts on releases uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: stacker + file: stacker-${{ matrix.platform }} tag: ${{ github.ref }} overwrite: true file_glob: true