-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.goreleaser.yml
63 lines (57 loc) · 1.3 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
# https://goreleaser.com
project_name: wantarr
env:
- GO111MODULE=on
- CGO_ENABLED=1
# Build
builds:
- id: build_darwin
env:
- CC=o64-clang
- CXX=o64-clang++
goos:
- darwin
goarch:
- amd64
ldflags:
- -s -w
- -X "github.com/l3uddz/wantarr/build.Version={{ .Version }}"
- -X "github.com/l3uddz/wantarr/build.GitCommit={{ .ShortCommit }}"
- -X "github.com/l3uddz/wantarr/build.Timestamp={{ .Timestamp }}"
flags:
- -trimpath
- id: build_linux
goos:
- linux
goarch:
- amd64
ldflags:
- -linkmode external
- -extldflags -static
- -s -w
- -X "github.com/l3uddz/wantarr/build.Version={{ .Version }}"
- -X "github.com/l3uddz/wantarr/build.GitCommit={{ .ShortCommit }}"
- -X "github.com/l3uddz/wantarr/build.Timestamp={{ .Timestamp }}"
flags:
- -trimpath
- -tags=netgo
- -v
# Archive
archives:
-
name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format: "binary"
# Checksum
checksum:
name_template: "checksums.txt"
algorithm: sha512
# Snapshot
snapshot:
name_template: "{{ .Major }}.{{ .Minor }}.{{ .Patch }}-dev+{{ .ShortCommit }}"
# Changelog
changelog:
filters:
exclude:
- "^docs:"
- "^test:"
- "^Merge branch"