Skip to content

Commit 4af312d

Browse files
committed
fix workflow
1 parent 925fa23 commit 4af312d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Diff for: .github/workflows/go.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,21 @@ jobs:
88
release-linux-amd64:
99
name: release linux/amd64
1010
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
14+
goos: [ linux, windows, darwin ]
15+
goarch: [ "386", amd64, arm64 ]
16+
exclude:
17+
- goarch: "386"
18+
goos: darwin
19+
- goarch: arm64
20+
goos: windows
1121
steps:
1222
- uses: actions/checkout@v2
1323
- uses: wangyoucao577/[email protected]
1424
with:
1525
github_token: ${{ secrets.GITHUB_TOKEN }}
1626
goversion: 1.17
17-
goos: [linux, windows, darwin]
18-
goarch: ["386", amd64, arm64]
27+
goos: ${{ matrix.goos }}
28+
goarch: ${{ matrix.goarch }}

0 commit comments

Comments
 (0)