nezha/.goreleaser.yml

46 lines
792 B
YAML
Raw Normal View History

2020-12-12 22:53:04 -05:00
before:
hooks:
- go mod tidy -v
2020-11-29 09:17:40 -05:00
builds:
- id: nezha-agent
ldflags:
- -s -w
2020-11-29 09:17:40 -05:00
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- arm
- arm64
- 386
- amd64
- mips
- mips64
gomips:
- softfloat
2021-04-25 12:07:55 -04:00
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
2020-11-29 09:17:40 -05:00
main: ./cmd/agent
2020-11-29 10:07:31 -05:00
binary: nezha-agent
hooks:
post:
# 为路由器、开发板缩小二进制体积
- npx --best "{{.Path}}"
2020-11-29 09:17:40 -05:00
checksum:
name_template: "checksums.txt"
snapshot:
2020-11-29 10:07:31 -05:00
name_template: "{{.ProjectName}}"
archives:
2020-11-29 11:07:27 -05:00
- name_template: "nezha-agent_{{ .Os }}_{{ .Arch }}"
2020-11-29 09:17:40 -05:00
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"