.goreleaser.yaml (view raw)
1version: 2
2
3builds:
4 - binary: legit
5 env:
6 - CGO_ENABLED=0
7 ldflags:
8 - -s -w -X main.buildDate={{.Date}} -X main.version={{.Version}}
9 goos:
10 - linux
11 - darwin
12 goarch:
13 - arm64
14 - amd64
15 - "386"
16 dir: .
17
18archives:
19 - formats: [tar.gz]
20 # this name template makes the OS and Arch compatible with the results of `uname`.
21 name_template: >-
22 {{ .ProjectName }}_
23 {{- title .Os }}_
24 {{- if eq .Arch "amd64" }}x86_64
25 {{- else if eq .Arch "386" }}i386
26 {{- else }}{{ .Arch }}{{ end }}
27 {{- if .Arm }}v{{ .Arm }}{{ end }}
28
29changelog:
30 sort: asc
31 filters:
32 exclude:
33 - "^docs:"
34 - "^test:"
35
36upx:
37 - # Templates: allowed.
38 enabled: true
39
40 # Filter by build ID.
41 ids: [build1, build2]
42
43 # Filter by GOOS.
44 goos: [linux, darwin]
45
46 # Filter by GOARCH.
47 goarch: [arm, amd64]
48
49 # Filter by GOARM.
50 goarm: [8]
51
52 # Filter by GOAMD64.
53 goamd64: [v1]
54
55 # Compress argument.
56 # Valid options are from '1' (faster) to '9' (better), and 'best'.
57 compress: best
58
59 # Whether to try LZMA (slower).
60 lzma: true
61
62 # Whether to try all methods and filters (slow).
63 brute: true