2021-11-07 23:00:19 -08:00
|
|
|
before:
|
|
|
|
hooks:
|
|
|
|
- go mod tidy
|
|
|
|
- go generate ./...
|
|
|
|
builds:
|
2021-12-06 01:42:25 -08:00
|
|
|
- id: "with-upx"
|
|
|
|
env:
|
2021-11-07 23:00:19 -08:00
|
|
|
- CGO_ENABLED=0
|
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
- windows
|
|
|
|
- darwin
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- arm64
|
|
|
|
- arm
|
|
|
|
- "386"
|
|
|
|
goarm:
|
|
|
|
- "6"
|
|
|
|
- "7"
|
|
|
|
flags:
|
|
|
|
- -trimpath
|
|
|
|
ldflags:
|
|
|
|
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=goreleaser
|
|
|
|
ignore:
|
|
|
|
- goos: windows
|
|
|
|
goarch: arm64
|
2021-12-06 01:42:25 -08:00
|
|
|
- goos: windows
|
|
|
|
goarch: arm
|
|
|
|
- goos: linux
|
|
|
|
goarch: mips64
|
|
|
|
hooks:
|
|
|
|
post: upx --best -f -q "{{ .Path }}"
|
|
|
|
|
|
|
|
# UnknownExecutableFormatException
|
|
|
|
# CantPackException: can't pack new-exe
|
|
|
|
- id: "without-upx"
|
|
|
|
env:
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
- windows
|
|
|
|
goarch:
|
|
|
|
- mips64
|
|
|
|
- arm
|
|
|
|
goarm:
|
|
|
|
- "6"
|
|
|
|
- "7"
|
|
|
|
flags:
|
|
|
|
- -trimpath
|
|
|
|
ldflags:
|
|
|
|
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=goreleaser
|
|
|
|
ignore:
|
|
|
|
- goos: linux
|
|
|
|
goarch: arm
|
|
|
|
|
2021-11-07 23:00:19 -08:00
|
|
|
archives:
|
|
|
|
- replacements:
|
|
|
|
darwin: Darwin
|
|
|
|
linux: Linux
|
|
|
|
windows: Windows
|
|
|
|
386: i386
|
|
|
|
amd64: x86_64
|
|
|
|
checksum:
|
|
|
|
name_template: 'checksums.txt'
|
|
|
|
snapshot:
|
|
|
|
name_template: "{{ incpatch .Version }}-next"
|
|
|
|
changelog:
|
|
|
|
sort: asc
|
|
|
|
filters:
|
|
|
|
exclude:
|
|
|
|
- '^docs:'
|
|
|
|
- '^test:'
|