From 0e806469b82d16080d99b7654189c6170b39754e Mon Sep 17 00:00:00 2001 From: Eguzki Astiz Lezaun Date: Thu, 23 Nov 2023 11:10:44 +0100 Subject: [PATCH] build and publish in parallel: linux/amd64, linux/arm64, darwin/amd64, darwin/arm64 --- .github/workflows/release.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 28e14f2..d667e88 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -11,14 +11,19 @@ permissions: packages: write jobs: - release-linux-amd64: - name: release linux/amd64 + release-matrix: + name: Release Go Binary runs-on: ubuntu-latest + strategy: + matrix: + # build and publish in parallel: linux/amd64, linux/arm64, darwin/amd64, darwin/arm64 + goos: [linux, darwin] + goarch: [amd64, arm64] steps: - uses: actions/checkout@v3 - uses: wangyoucao577/go-release-action@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }} - goos: linux - goarch: amd64 + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} goversion: 1.21.4