File tree Expand file tree Collapse file tree 2 files changed +31
-4
lines changed Expand file tree Collapse file tree 2 files changed +31
-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,33 @@ jobs:
1818 fetch-depth : 0
1919 - name : Set up Go
2020 uses : actions/setup-go@v5
21- - name : Run GoReleaser
21+ with :
22+ go-version : ' 1.23'
23+ - name : Run GoReleaser for Linux and Windows
24+ uses : goreleaser/goreleaser-action@v6
25+ with :
26+ distribution : goreleaser
27+ version : " ~> v2"
28+ args : release --clean --skip-publish --skip-validate --id=build-linux-windows
29+ env :
30+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31+
32+ build-macos :
33+ runs-on : macos-latest
34+ steps :
35+ - name : Checkout
36+ uses : actions/checkout@v4
37+ with :
38+ fetch-depth : 0
39+ - name : Set up Go
40+ uses : actions/setup-go@v5
41+ with :
42+ go-version : ' 1.23'
43+ - name : Run GoReleaser for macOS
2244 uses : goreleaser/goreleaser-action@v6
2345 with :
2446 distribution : goreleaser
2547 version : " ~> v2"
26- args : release --clean
48+ args : release --clean --skip-publish --skip-validate --id=build-macos
2749 env :
2850 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