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