Skip to content

Commit

Permalink
👷 macOS universal binaries support
Browse files Browse the repository at this point in the history
  • Loading branch information
naiba committed Nov 3, 2021
1 parent 948f398 commit e12d87f
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ builds:
- id: nezha-agent
env:
- CGO_ENABLED=0
ldflags:
- -s -w
goos:
- linux
- windows
Expand All @@ -28,16 +26,27 @@ builds:
main: ./cmd/agent
binary: nezha-agent
universal_binaries:
- replace: true
- id: nezha-agent
name_template: "nezha-agent"
replace: true
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{.ProjectName}}"
archives:
- name_template: "nezha-agent_{{ .Os }}_{{ .Arch }}"
- name_template: "nezha-agent"
files:
- README.md
- LICENSE
- completions/*
changelog:
sort: asc
use: github
filters:
exclude:
- "^docs:"
- "^test:"
- '^docs:'
- '^test:'
- '^chore'
- Merge pull request
- Merge branch
- go mod tidy

0 comments on commit e12d87f

Please sign in to comment.