File tree Expand file tree Collapse file tree 2 files changed +27
-4
lines changed Expand file tree Collapse file tree 2 files changed +27
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ permissions:
99 contents : write
1010
1111jobs :
12- goreleaser :
12+ build-linux-windows :
1313 runs-on : ubuntu-latest
1414 steps :
1515 - name : Checkout
@@ -18,11 +18,29 @@ jobs:
1818 fetch-depth : 0
1919 - name : Set up Go
2020 uses : actions/setup-go@v5
21- - name : Run GoReleaser
21+ - name : Run GoReleaser for Linux and Windows
2222 uses : goreleaser/goreleaser-action@v6
2323 with :
2424 distribution : goreleaser
2525 version : " ~> v2"
26- args : release --clean
26+ args : release --clean --skip-publish --skip-validate --id=build-linux-windows
27+ env :
28+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29+
30+ build-macos :
31+ runs-on : macos-latest
32+ steps :
33+ - name : Checkout
34+ uses : actions/checkout@v4
35+ with :
36+ fetch-depth : 0
37+ - name : Set up Go
38+ uses : actions/setup-go@v5
39+ - name : Run GoReleaser for macOS
40+ uses : goreleaser/goreleaser-action@v6
41+ with :
42+ distribution : goreleaser
43+ version : " ~> v2"
44+ args : release --clean --skip-publish --skip-validate --id=build-macos
2745 env :
2846 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -6,10 +6,15 @@ before:
66 - go generate ./...
77
88builds :
9- - id : build
9+ - id : build-linux-windows
1010 goos :
1111 - windows
1212 - linux
13+ goarch :
14+ - amd64
15+ - arm64
16+ - id : build-macos
17+ goos :
1318 - darwin
1419 goarch :
1520 - amd64
You can’t perform that action at this time.
0 commit comments