navidrome/.goreleaser.yml

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

143 lines
3.3 KiB
YAML
Raw Normal View History

2020-01-26 12:36:24 -05:00
# GoReleaser config
2020-04-22 20:56:04 -04:00
project_name: navidrome
2020-01-26 12:36:24 -05:00
2023-01-12 22:04:36 -05:00
before:
hooks:
- go env -w GOFLAGS="-buildvcs=false"
2020-01-26 12:36:24 -05:00
builds:
- id: navidrome_linux_amd64
2020-01-26 12:36:24 -05:00
env:
- CGO_ENABLED=1
goos:
- linux
2020-01-26 12:36:24 -05:00
goarch:
- amd64
flags:
2023-01-13 21:35:54 -05:00
- -tags=netgo
2020-01-26 12:36:24 -05:00
ldflags:
- "-extldflags '-static -lz'"
- -s -w -X github.com/navidrome/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/navidrome/navidrome/consts.gitTag={{.Version}}
2020-08-07 13:36:00 -04:00
- id: navidrome_linux_386
env:
- CGO_ENABLED=1
2022-09-27 16:47:47 -04:00
- PKG_CONFIG_PATH=/i386/lib/pkgconfig
2020-08-07 13:36:00 -04:00
goos:
- linux
goarch:
- "386"
2020-08-07 13:36:00 -04:00
flags:
2023-01-13 21:35:54 -05:00
- -tags=netgo
2020-08-07 13:36:00 -04:00
ldflags:
- "-extldflags '-static'"
- -s -w -X github.com/navidrome/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/navidrome/navidrome/consts.gitTag={{.Version}}
2020-01-26 12:36:24 -05:00
- id: navidrome_linux_arm
2020-01-26 12:36:24 -05:00
env:
- CGO_ENABLED=1
- CC=arm-linux-gnueabi-gcc
- CXX=arm-linux-gnueabi-g++
2022-09-27 16:47:47 -04:00
- PKG_CONFIG_PATH=/arm/lib/pkgconfig
2020-01-26 12:36:24 -05:00
goos:
- linux
goarch:
- arm
goarm:
- "5"
- "6"
- "7"
flags:
2023-01-13 21:35:54 -05:00
- -tags=netgo
ldflags:
- "-extldflags '-static'"
- -s -w -X github.com/navidrome/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/navidrome/navidrome/consts.gitTag={{.Version}}
- id: navidrome_linux_arm64
env:
- CGO_ENABLED=1
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
2022-09-27 16:47:47 -04:00
- PKG_CONFIG_PATH=/arm64/lib/pkgconfig
goos:
- linux
goarch:
- arm64
2020-01-26 12:36:24 -05:00
flags:
2023-01-13 21:35:54 -05:00
- -tags=netgo
2020-01-26 12:36:24 -05:00
ldflags:
- "-extldflags '-static'"
- -s -w -X github.com/navidrome/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/navidrome/navidrome/consts.gitTag={{.Version}}
- id: navidrome_windows_386
2020-01-26 12:36:24 -05:00
env:
- CGO_ENABLED=1
- CC=i686-w64-mingw32-gcc
- CXX=i686-w64-mingw32-g++
- PKG_CONFIG_PATH=/mingw32/lib/pkgconfig
2020-01-26 12:36:24 -05:00
goos:
- windows
goarch:
- "386"
2020-01-26 12:36:24 -05:00
flags:
2023-01-13 21:35:54 -05:00
- -tags=netgo
2020-01-26 12:36:24 -05:00
ldflags:
- "-extldflags '-static'"
- -s -w -X github.com/navidrome/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/navidrome/navidrome/consts.gitTag={{.Version}}
2020-01-26 12:36:24 -05:00
- id: navidrome_windows_amd64
2020-01-26 12:36:24 -05:00
env:
- CGO_ENABLED=1
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
- PKG_CONFIG_PATH=/mingw64/lib/pkgconfig
2020-01-26 12:36:24 -05:00
goos:
- windows
goarch:
- amd64
flags:
2023-01-13 21:35:54 -05:00
- -tags=netgo
2020-01-26 12:36:24 -05:00
ldflags:
- "-extldflags '-static'"
- -s -w -X github.com/navidrome/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/navidrome/navidrome/consts.gitTag={{.Version}}
2020-01-26 12:36:24 -05:00
- id: navidrome_darwin_amd64
2020-09-10 17:49:25 -04:00
env:
- CGO_ENABLED=1
- CC=o64-clang
- CXX=o64-clang++
- PKG_CONFIG_PATH=/darwin/lib/pkgconfig
goos:
- darwin
goarch:
- amd64
flags:
2023-01-13 21:35:54 -05:00
- -tags=netgo
2020-09-10 17:49:25 -04:00
ldflags:
- -s -w -X github.com/navidrome/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/navidrome/navidrome/consts.gitTag={{.Version}}
2020-01-26 12:36:24 -05:00
archives:
2020-07-09 15:00:51 -04:00
- format_overrides:
2020-01-26 12:36:24 -05:00
- goos: windows
format: zip
2020-03-13 21:41:24 -04:00
replacements:
darwin: macOS
linux: Linux
windows: Windows
386: i386
amd64: x86_64
2020-01-26 12:36:24 -05:00
checksum:
2020-04-17 09:41:34 -04:00
name_template: "{{ .ProjectName }}_checksums.txt"
2020-01-26 12:36:24 -05:00
snapshot:
2020-04-17 09:41:34 -04:00
name_template: "{{ .Tag }}-SNAPSHOT"
2020-01-26 12:36:24 -05:00
release:
draft: true
changelog:
2020-04-17 13:52:18 -04:00
# sort: asc
2020-01-26 12:36:24 -05:00
filters:
exclude:
2020-04-17 09:41:34 -04:00
- "^docs:"