navidrome/.goreleaser.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

151 lines
3.4 KiB
YAML
Raw Normal View History

2020-01-26 18:36:24 +01:00
# GoReleaser config
2020-04-23 02:56:04 +02:00
project_name: navidrome
2020-01-26 18:36:24 +01:00
before:
hooks:
- go-bindata -fs -prefix ui/build -tags embed -nocompress -pkg assets -o assets/embedded_gen.go ui/build/...
builds:
- id: navidrome_darwin
env:
- CGO_ENABLED=1
- CC=o64-clang
- CXX=o64-clang++
goos:
- darwin
goarch:
- amd64
flags:
- -tags=embed
ldflags:
2020-04-17 15:41:34 +02:00
- -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}}
- id: navidrome_linux_amd64
2020-01-26 18:36:24 +01:00
env:
- CGO_ENABLED=1
goos:
- linux
2020-01-26 18:36:24 +01:00
goarch:
- amd64
flags:
- -tags=embed
ldflags:
- "-extldflags '-static'"
2020-04-17 15:41:34 +02:00
- -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}}
2020-01-26 18:36:24 +01:00
- id: navidrome_linux_musl_amd64
env:
- CGO_ENABLED=1
- CC=musl-gcc
goos:
- linux
goarch:
- amd64
flags:
- -tags=embed
ldflags:
- "-extldflags '-static'"
2020-04-17 15:41:34 +02:00
- -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}}
- id: navidrome_linux_arm
2020-01-26 18:36:24 +01:00
env:
- CGO_ENABLED=1
- CC=arm-linux-gnueabi-gcc
2020-01-26 18:36:24 +01:00
goos:
- linux
goarch:
- arm
goarm:
- 6
- 7
flags:
- -tags=embed
ldflags:
- "-extldflags '-static'"
2020-04-17 15:41:34 +02:00
- -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}}
- id: navidrome_linux_arm64
env:
- CGO_ENABLED=1
- CC=aarch64-linux-gnu-gcc
goos:
- linux
goarch:
- arm64
2020-01-26 18:36:24 +01:00
flags:
- -tags=embed
ldflags:
- "-extldflags '-static'"
2020-04-17 15:41:34 +02:00
- -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}}
2020-01-26 18:36:24 +01:00
- id: navidrome_windows_i686
env:
- CGO_ENABLED=1
- CC=i686-w64-mingw32-gcc
- CXX=i686-w64-mingw32-g++
goos:
- windows
goarch:
- 386
flags:
- -tags=embed
ldflags:
- "-extldflags '-static'"
2020-04-17 15:41:34 +02:00
- -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}}
2020-01-26 18:36:24 +01:00
- id: navidrome_windows_x64
env:
- CGO_ENABLED=1
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
goos:
- windows
goarch:
- amd64
flags:
- -tags=embed
ldflags:
- "-extldflags '-static'"
2020-04-17 15:41:34 +02:00
- -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}}
2020-01-26 18:36:24 +01:00
archives:
- id: musl
builds:
- navidrome_linux_musl_amd64
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_musl_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements:
linux: Linux
amd64: x86_64
- id: default
builds:
- navidrome_darwin
- navidrome_linux_amd64
- navidrome_linux_arm
- navidrome_linux_arm64
- navidrome_windows_i686
- navidrome_windows_x64
2020-01-26 18:36:24 +01:00
format_overrides:
- goos: windows
format: zip
2020-03-14 02:41:24 +01:00
replacements:
darwin: macOS
linux: Linux
windows: Windows
386: i386
amd64: x86_64
2020-01-26 18:36:24 +01:00
checksum:
2020-04-17 15:41:34 +02:00
name_template: "{{ .ProjectName }}_checksums.txt"
2020-01-26 18:36:24 +01:00
snapshot:
2020-04-17 15:41:34 +02:00
name_template: "{{ .Tag }}-SNAPSHOT"
2020-01-26 18:36:24 +01:00
release:
draft: true
changelog:
2020-04-17 19:52:18 +02:00
# sort: asc
2020-01-26 18:36:24 +01:00
filters:
exclude:
2020-04-17 15:41:34 +02:00
- "^docs:"