File tree Expand file tree Collapse file tree 3 files changed +91
-1
lines changed Expand file tree Collapse file tree 3 files changed +91
-1
lines changed Original file line number Diff line number Diff line change 11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- 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-multilib
14
21
15
22
- name : Set up Go
16
23
uses : actions/setup-go@v5
22
29
with :
23
30
distribution : goreleaser
24
31
version : ' ~> v2'
25
- args : release --clean --timeout 80m
32
+ args : release --config .goreleaser.yaml -- clean --timeout 80m
26
33
env :
27
34
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
+ - ' v8.0'
14
+ - ' v9.0'
15
+ changelog :
16
+ disable : false
17
+ use : github
18
+ format : " {{.SHA}}: {{.Message}} (@{{.AuthorUsername}})"
19
+ sort : asc
20
+ abbrev : -1
21
+ archives :
22
+ -
23
+ id : default
24
+ allow_different_binary_count : true
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
+ # - plan9
13
+ - windows
14
+ goarch :
15
+ - 386
16
+ - amd64
17
+ - arm
18
+ - arm64
19
+ goarm :
20
+ - 6
21
+ - 7
22
+ goarm64 :
23
+ - ' v8.0'
24
+ - ' v9.0'
25
+ ignore :
26
+ - goos : netbsd
27
+ goarch : arm64
28
+ - goos : freebsd
29
+ goarm : arm64
30
+ - goos : plan9
31
+ goarm : arm64
32
+ changelog :
33
+ disable : false
34
+ use : github
35
+ format : " {{.SHA}}: {{.Message}} (@{{.AuthorUsername}})"
36
+ sort : asc
37
+ abbrev : -1
38
+
You can’t perform that action at this time.
0 commit comments