-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
66 lines (62 loc) · 1.3 KB
/
.goreleaser.yaml
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
# .goreleaser.yaml
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
- .github/hooks/install-build-tools.sh
- .github/hooks/install-upx.sh
builds:
- id: "build"
main: ./main.go
binary: bypctl
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- "-extldflags -static"
goos:
- linux
- darwin
goarch:
- amd64
- arm64
upx:
- # Whether to enable it or not.
enabled: true
ids:
- build
goos:
- linux
# - darwin
goarch:
- amd64
- arm64
# goarm:
# - 7
# goamd64:
# - v1
# Compress argument.
# Valid options are from '1' (faster) to '9' (better), and 'best'.
compress: '9'
# Whether to try LZMA (slower).
lzma: false
# Whether to try all methods and filters (slow).
brute: false
archives:
- format: tar.gz
name_template: "bypctl-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{- if .Arm }}v{{ .Arm }}{{ end }}"
wrap_in_directory: true
files:
- README.md
- LICENSE
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
release:
draft: true
mode: append
extra_files:
- glob: dist/*.tar.gz
- glob: dist/checksums.txt
name_template: "Release {{.Tag}}"