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
|
|
|
|
env:
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
- windows
|
|
|
|
- darwin
|
2020-12-21 06:14:50 -05:00
|
|
|
goarch:
|
2021-01-18 20:59:04 -05:00
|
|
|
- arm
|
2020-12-21 06:14:50 -05:00
|
|
|
- arm64
|
|
|
|
- 386
|
2021-01-18 20:59:04 -05:00
|
|
|
- amd64
|
2020-12-21 06:14:50 -05:00
|
|
|
- mips
|
2021-01-18 20:59:04 -05:00
|
|
|
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
|
2021-04-28 12:06:33 -04:00
|
|
|
# 为路由器、开发板缩小二进制体积
|
2021-04-28 11:21:54 -04:00
|
|
|
hooks:
|
|
|
|
post:
|
2021-04-28 11:53:56 -04:00
|
|
|
- upx --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:"
|