feat: add darwin support

This commit is contained in:
Karol Broda
2025-12-16 23:59:43 +01:00
parent 9fcc6d47c2
commit dc235a5807
5 changed files with 816 additions and 454 deletions

View File

@@ -7,7 +7,8 @@ before:
- go mod tidy
builds:
- env:
- id: linux
env:
- CGO_ENABLED=0
goos:
- linux
@@ -23,6 +24,20 @@ builds:
- -X snitch/cmd.Commit={{.ShortCommit}}
- -X snitch/cmd.Date={{.Date}}
- 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
@@ -59,6 +74,8 @@ nfpms:
- deb
- rpm
- apk
builds:
- linux
release:
github:
@@ -66,4 +83,3 @@ release:
name: snitch
draft: false
prerelease: auto