feat: add darwin support
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user