Skip to content

Commit

Permalink
build and publish in parallel: linux/amd64, linux/arm64, darwin/amd64…
Browse files Browse the repository at this point in the history
…, darwin/arm64
  • Loading branch information
eguzki committed Nov 23, 2023
1 parent 7b4c4fa commit 0e80646
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0e80646

Please sign in to comment.