Skip to content

Commit

Permalink
fix(release): separate out the mac build (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
grepory authored Sep 26, 2024
1 parent fe6d2ce commit bb756e6
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@ before:
- go mod tidy

builds:
- id: mac
env:
# goreleaser does not work with CGO, it could also complicate
# usage by users in CI/CD systems like Terraform Cloud where
# they are unable to install libraries.
- CGO_ENABLED=0
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
goos:
- darwin
goarch:
- amd64
- arm64
binary: '{{ .ProjectName }}_v{{ .Version }}'
- id: linux
env:
# goreleaser does not work with CGO, it could also complicate
Expand All @@ -20,15 +37,11 @@ builds:
goos:
- freebsd
- linux
- darwin
goarch:
- amd64
- '386'
- arm
- arm64
ignore:
- goos: darwin
goarch: '386'
binary: '{{ .ProjectName }}_v{{ .Version }}'
- id: windows
env:
Expand Down

0 comments on commit bb756e6

Please sign in to comment.