chore: separate darwin build configuration into .goreleaser-darwin.yaml and update action

This commit is contained in:
Karol Broda
2025-12-17 00:11:13 +01:00
parent eee7cfd64d
commit 7f2bd068ad
3 changed files with 43 additions and 67 deletions

36
.goreleaser-darwin.yaml Normal file
View File

@@ -0,0 +1,36 @@
version: 2
project_name: snitch
builds:
- id: darwin
env:
- CGO_ENABLED=1
goos:
- darwin
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X snitch/cmd.Version={{.Version}}
- -X snitch/cmd.Commit={{.ShortCommit}}
- -X snitch/cmd.Date={{.Date}}
archives:
- formats:
- tar.gz
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- .Arch }}
release:
github:
owner: karol-broda
name: snitch
draft: false
prerelease: auto
mode: append