File tree Expand file tree Collapse file tree 3 files changed +85
-1
lines changed
Expand file tree Collapse file tree 3 files changed +85
-1
lines changed Original file line number Diff line number Diff line change 1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v4
14+ with :
15+ fetch-depth : 0
16+
17+ # - name: Dependencies
18+ # run: |
19+ # sudo apt update
20+ # sudo apt install -y gcc-mingw-w64 gcc-arm-linux-gnueabi gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu
1421
1522 - name : Set up Go
1623 uses : actions/setup-go@v5
2229 with :
2330 distribution : goreleaser
2431 version : ' ~> v2'
25- args : release --clean --timeout 80m
32+ args : release --config .goreleaser.yaml -- clean --timeout 80m
2633 env :
2734 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35+ release-macos :
36+ runs-on : macos-latest
37+ steps :
38+ - uses : actions/checkout@v4
39+ with :
40+ fetch-depth : 0
41+
42+ - name : Set up Go
43+ uses : actions/setup-go@v5
44+ with :
45+ go-version : 1.23.1
46+
47+ - name : Run GoReleaser
48+ uses : goreleaser/goreleaser-action@v6
49+ with :
50+ distribution : goreleaser
51+ version : ' ~> v2'
52+ args : release --config .goreleaser-macos.yaml --clean --timeout 80m
53+ env :
54+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
55+
Original file line number Diff line number Diff line change 1+ # .goreleaser.yaml
2+ version : 2
3+ builds :
4+ -
5+ env :
6+ - CGO_ENABLED=1
7+ goos :
8+ - darwin
9+ goarch :
10+ - amd64
11+ - arm64
12+ goarm64 :
13+ - ' v9.0'
14+ checksum :
15+ name_template : " {{ .ProjectName }}_macos_checksums.txt"
16+ changelog :
17+ disable : false
18+ use : github
19+ format : " {{.SHA}}: {{.Message}} (@{{.AuthorUsername}})"
20+ sort : asc
21+ abbrev : -1
Original file line number Diff line number Diff line change 1+ # .goreleaser.yaml
2+ version : 2
3+ builds :
4+ -
5+ env :
6+ - CGO_ENABLED=1
7+ goos :
8+ - linux
9+ # - netbsd
10+ # - openbsd
11+ # - freebsd
12+ # - windows
13+ goarch :
14+ - amd64
15+ # - arm
16+ # - arm64
17+ # goarm:
18+ # - "6"
19+ # - "7"
20+ # ignore:
21+ # - goos: netbsd
22+ # goarch: arm64
23+ # - goos: freebsd
24+ # goarm: arm64
25+ # - goos: linux
26+ # goarch: arm
27+ checksum :
28+ name_template : " {{ .ProjectName }}_checksums.txt"
29+ changelog :
30+ disable : false
31+ use : github
32+ format : " {{.SHA}}: {{.Message}} (@{{.AuthorUsername}})"
33+ sort : asc
34+ abbrev : -1
35+
You can’t perform that action at this time.
0 commit comments