Add darwin to the goos list in .goreleaser.yml so releases include macOS binaries for both amd64 and arm64 architectures. Pure Go with CGO_ENABLED=0, so cross-compilation works on Linux CI runners. Closes #70 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
33 lines
747 B
YAML
33 lines
747 B
YAML
version: 2
|
|
builds:
|
|
- env:
|
|
- CGO_ENABLED=0
|
|
mod_timestamp: '{{ .CommitTimestamp }}'
|
|
flags:
|
|
- -trimpath
|
|
ldflags:
|
|
- '-s -w -X main.BuildTag={{.Version}} -X main.BuildCommit={{.Commit}} -X main.BuildDate={{.Date}}'
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
binary: '{{ .ProjectName }}'
|
|
archives:
|
|
- formats: ['tar.gz']
|
|
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
|
|
wrap_in_directory: true
|
|
strip_binary_directory: true
|
|
format_overrides:
|
|
- goos: windows
|
|
formats: ['zip']
|
|
files:
|
|
- LICENSE
|
|
- README.md
|
|
checksum:
|
|
disable: true
|
|
|
|
gitea_urls:
|
|
api: https://codeberg.org/api/v1
|
|
download: https://codeberg.org
|