-
Notifications
You must be signed in to change notification settings - Fork 553
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
57 lines (51 loc) · 1.13 KB
/
.goreleaser.yaml
File metadata and controls
57 lines (51 loc) · 1.13 KB
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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
flags:
- -tags=embed
- -trimpath
ldflags:
- -s -w
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
# Release raw executables — no zip/tar.gz wrapper.
# conf/, web/build/, and skills/ are baked into the binary via go:embed.
archives:
- format: binary
name_template: >-
{{ .ProjectName }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# UPX compression — applied after linking.
# darwin is excluded: macOS Ventura+ is not supported by UPX.
# windows/arm64 is excluded: UPX support is untested/unreliable there.
upx:
- goos: [linux]
goarch: [amd64, arm64]
enabled: true
compress: "9"
lzma: true
- goos: [windows]
goarch: [amd64]
enabled: true
compress: "9"
lzma: true
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"