Skip to content

Commit 6f024d0

Browse files
authored
Merge pull request #1 from nvima/feat/add_release_multi_os
add multi os release
2 parents 3c373ec + f7f5729 commit 6f024d0

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/release.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,23 @@ permissions:
88
packages: write
99

1010
jobs:
11-
release-linux-amd64:
12-
name: release linux/amd64
11+
releases-matrix:
12+
name: Release Go Binary
1313
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
17+
goos: [linux, windows, darwin]
18+
goarch: ["386", amd64, arm64]
19+
exclude:
20+
- goarch: "386"
21+
goos: darwin
22+
- goarch: arm64
23+
goos: windows
1424
steps:
1525
- uses: actions/checkout@v3
1626
- uses: wangyoucao577/go-release-action@v1
1727
with:
1828
github_token: ${{ secrets.GITHUB_TOKEN }}
19-
goos: linux
20-
goarch: amd64
29+
goos: ${{ matrix.goos }}
30+
goarch: ${{ matrix.goarch }}

0 commit comments

Comments
 (0)