Skip to content

Commit f9a3c47

Browse files
committed
Update release.yaml to build binary for windows & mac
1 parent f207666 commit f9a3c47

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

.github/workflows/release.yaml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,24 @@ permissions:
77
packages: write
88

99
jobs:
10-
release-linux-amd64:
11-
name: release linux/amd64
10+
releases-matrix:
11+
name: Release Go Binary
1212
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v4
15-
- uses: wangyoucao577/go-release-action@v1
16-
with:
17-
github_token: ${{ secrets.GITHUB_TOKEN }}
18-
goos: linux
19-
goarch: amd64
13+
strategy:
14+
matrix:
15+
# build and publish in parallel: linux/amd64, linux/arm64, windows/amd64, darwin/amd64, darwin/arm64
16+
goos: [linux, windows, darwin]
17+
goarch: [amd64, arm64]
18+
exclude:
19+
- goarch: '386'
20+
goos: darwin
21+
- goarch: arm64
22+
goos: windows
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: wangyoucao577/go-release-action@v1
26+
with:
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
goos: ${{ matrix.goos }}
29+
goarch: ${{ matrix.goarch }}
30+
goversion: 'https://dl.google.com/go/go1.22.2.linux-amd64.tar.gz'

0 commit comments

Comments
 (0)