2020-12-13 11:53:04 +08:00
|
|
|
before:
|
|
|
|
hooks:
|
|
|
|
- go mod tidy -v
|
2020-11-29 22:17:40 +08:00
|
|
|
builds:
|
|
|
|
- id: nezha-agent
|
|
|
|
env:
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
- windows
|
|
|
|
- darwin
|
2020-12-21 19:14:50 +08:00
|
|
|
goarch:
|
2021-01-19 09:59:04 +08:00
|
|
|
- arm
|
2020-12-21 19:14:50 +08:00
|
|
|
- arm64
|
|
|
|
- 386
|
2021-01-19 09:59:04 +08:00
|
|
|
- amd64
|
2020-12-21 19:14:50 +08:00
|
|
|
- mips
|
2021-01-19 09:59:04 +08:00
|
|
|
gomips:
|
|
|
|
- softfloat
|
2021-04-26 00:07:55 +08:00
|
|
|
ignore:
|
|
|
|
- goos: windows
|
|
|
|
goarch: arm
|
|
|
|
- goos: windows
|
|
|
|
goarch: arm64
|
2020-11-29 22:17:40 +08:00
|
|
|
main: ./cmd/agent
|
2020-11-29 23:07:31 +08:00
|
|
|
binary: nezha-agent
|
2021-04-29 00:06:33 +08:00
|
|
|
# 为路由器、开发板缩小二进制体积
|
|
|
|
ldflags:
|
|
|
|
- -s -w
|
2021-04-28 23:21:54 +08:00
|
|
|
hooks:
|
|
|
|
post:
|
2021-04-28 23:53:56 +08:00
|
|
|
- upx --best "{{.Path}}"
|
2020-11-29 22:17:40 +08:00
|
|
|
checksum:
|
|
|
|
name_template: "checksums.txt"
|
|
|
|
snapshot:
|
2020-11-29 23:07:31 +08:00
|
|
|
name_template: "{{.ProjectName}}"
|
|
|
|
archives:
|
2020-11-30 00:07:27 +08:00
|
|
|
- name_template: "nezha-agent_{{ .Os }}_{{ .Arch }}"
|
2020-11-29 22:17:40 +08:00
|
|
|
changelog:
|
|
|
|
sort: asc
|
|
|
|
filters:
|
|
|
|
exclude:
|
|
|
|
- "^docs:"
|
|
|
|
- "^test:"
|