60 lines
1.1 KiB
YAML
60 lines
1.1 KiB
YAML
# https://goreleaser.com
|
|
project_name: nabarr
|
|
|
|
# Build
|
|
builds:
|
|
-
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
- windows
|
|
- freebsd
|
|
main: ./cmd/nabarr
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
- arm
|
|
goarm:
|
|
- 7
|
|
ldflags:
|
|
- -s -w
|
|
- -X "github.com/l3uddz/nabarr/build.Version={{ .Version }}"
|
|
- -X "github.com/l3uddz/nabarr/build.GitCommit={{ .ShortCommit }}"
|
|
- -X "github.com/l3uddz/nabarr/build.Timestamp={{ .Timestamp }}"
|
|
flags:
|
|
- -trimpath
|
|
ignore:
|
|
- goos: freebsd
|
|
goarch: arm64
|
|
- goos: freebsd
|
|
goarch: arm
|
|
|
|
# MacOS Universal Binaries
|
|
universal_binaries:
|
|
-
|
|
replace: true
|
|
|
|
# Archive
|
|
archives:
|
|
-
|
|
name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
|
|
format: "binary"
|
|
|
|
# Checksum
|
|
checksum:
|
|
name_template: "checksums.txt"
|
|
algorithm: sha512
|
|
|
|
# Snapshot
|
|
snapshot:
|
|
name_template: "{{ .Major }}.{{ .Minor }}.{{ .Patch }}-dev+{{ .ShortCommit }}"
|
|
|
|
# Changelog
|
|
changelog:
|
|
filters:
|
|
exclude:
|
|
- "^docs:"
|
|
- "^test:"
|
|
- "^Merge branch" |