autobrr/.goreleaser.yml
Kyle Sanderson 50f1e4e7d5
build(ci): implement PGO (#1812)
* build(ci): implement pgo

Implement PGO (performance guided optimizations) for Go builds.
2024-11-16 23:57:41 +01:00

125 lines
2.4 KiB
YAML

version: 2
before:
hooks:
- go mod tidy
builds:
- id: autobrr
env:
- CGO_ENABLED=0
flags:
- -pgo=cpu.pprof
goos:
- linux
- windows
- darwin
- freebsd
goarch:
- amd64
- arm
- arm64
goarm:
- 6
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
- goos: darwin
goarch: arm
- goos: freebsd
goarch: arm
- goos: freebsd
goarch: arm64
main: ./cmd/autobrr/main.go
binary: autobrr
- id: autobrrctl
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
- freebsd
goarch:
- amd64
- arm
- arm64
goarm:
- 6
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
- goos: darwin
goarch: arm
- goos: freebsd
goarch: arm
- goos: freebsd
goarch: arm64
main: ./cmd/autobrrctl/main.go
binary: autobrrctl
archives:
- id: autobrr
builds:
- autobrr
- autobrrctl
format_overrides:
- goos: windows
format: zip
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
release:
prerelease: auto
footer: |
**Full Changelog**: https://github.com/autobrr/autobrr/compare/{{ .PreviousTag }}...{{ .Tag }}
## Docker images
- `docker pull ghcr.io/autobrr/autobrr:{{ .Tag }}`
## What to do next?
- Read the [documentation](https://autobrr.com)
- Join our [Discord server](https://discord.gg/WQ2eUycxyT)
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
changelog:
sort: asc
use: github
filters:
exclude:
- Merge pull request
- Merge remote-tracking branch
- Merge branch
groups:
- title: 'New Features'
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 10
- title: Other work
order: 999
nfpms:
- package_name: autobrr
homepage: https://autobrr.com
maintainer: Autobrr <packages@autobrr.com>
description: |-
autobrr is the modern download automation tool for torrents and usenet.
formats:
- apk
- deb
- rpm
- archlinux