Skip to content

Commit 12ed43b

Browse files
committed
update build
1 parent 75f69e8 commit 12ed43b

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/build-and-release.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,22 @@ env:
2020

2121
jobs:
2222
build:
23-
name: Build
2423
runs-on: ubuntu-latest
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
platform:
28+
- linux/amd64
29+
- linux/arm64
2530
concurrency:
2631
group: build-${{ github.workflow }}-${{ github.ref }}
2732
cancel-in-progress: true
2833
steps:
34+
- name: Prepare
35+
run: |
36+
platform=${{ matrix.platform }}
37+
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
38+
2939
- name: Checkout
3040
uses: actions/checkout@v4
3141

@@ -57,7 +67,7 @@ jobs:
5767
context: .
5868
push: ${{ startsWith(github.ref, 'refs/tags/') }}
5969
provenance: mode=max
60-
platforms: linux/amd64,linux/arm64
70+
platforms: ${{ matrix.platform }}
6171
tags: ${{ steps.meta.outputs.tags }}
6272
labels: ${{ steps.meta.outputs.labels }}
6373
annotations: ${{ steps.meta.outputs.annotations }}

0 commit comments

Comments
 (0)