-
Notifications
You must be signed in to change notification settings - Fork 44
/
.goreleaser.yml
109 lines (99 loc) · 2.03 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
project_name: unarr
before:
hooks:
- go mod download
builds:
- id: unarr-linux-x64
binary: "{{ .ProjectName }}"
# brew install FiloSottile/musl-cross/musl-cross
main: ./cmd/unarr/unarr.go
env:
- CGO_ENABLED=1
- CC=x86_64-linux-musl-gcc
flags: &flags
- "-trimpath"
ldflags: &ldflags
- "-s -w -extldflags '-static'"
goos:
- linux
goarch:
- amd64
- id: unarr-linux-arm64
binary: "{{ .ProjectName }}"
main: ./cmd/unarr/unarr.go
env:
- CGO_ENABLED=1
- CC=aarch64-pc-linux-musl-gcc
flags: *flags
ldflags: *ldflags
goos:
- linux
goarch:
- arm64
- id: unarr-win-x64
binary: "{{ .ProjectName }}"
# brew install mingw-w64
main: ./cmd/unarr/unarr.go
env:
- CGO_ENABLED=1
- CC=x86_64-w64-mingw32-gcc
flags: *flags
ldflags: *ldflags
goos:
- windows
goarch:
- amd64
- id: unarr-darwin-x64
binary: "{{ .ProjectName }}"
main: ./cmd/unarr/unarr.go
env:
- CGO_ENABLED=1
- CC=x86_64-apple-darwin23.5-clang
flags: *flags
ldflags:
- "-s -w"
goos:
- darwin
goarch:
- amd64
- id: unarr-darwin-arm64
binary: "{{ .ProjectName }}"
main: ./cmd/unarr/unarr.go
env:
- CGO_ENABLED=1
- CC=aarch64-apple-darwin23.5-clang
flags: *flags
ldflags:
- "-s -w"
goos:
- darwin
goarch:
- arm64
archives:
- id: archive
wrap_in_directory: "{{ .ProjectName }}-{{ .Version }}"
name_template: >-
{{- .ProjectName }}-
{{- .Version }}-
{{- .Os }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "arm64" }}aarch64
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
- goos: darwin
format: zip
files:
- README.md
- LICENSE
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'