spray/.goreleaser.yml

64 lines
1.0 KiB
YAML
Raw Normal View History

2023-05-04 12:23:24 +08:00
project_name: spray
before:
hooks:
- go mod tidy
- go generate
builds:
-
main: .
binary: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
goos:
- windows
- linux
- darwin
goarch:
- amd64
- "386"
- arm64
ignore:
- goos: windows
goarch: arm64
- goos: darwin
goarch: "386"
ldflags: "-s -w -X 'github.com/chainreactors/spray/cmd.ver=={{ .Tag }}'"
flags:
- -trimpath
- -tags=forceposix
asmflags:
- all=-trimpath={{.Env.GOPATH}}
gcflags:
- all=-trimpath={{.Env.GOPATH}}
no_unique_dist_dir: true
2024-02-07 01:55:42 +08:00
2024-01-03 14:59:10 +08:00
upx:
2024-02-07 01:55:42 +08:00
-
2024-01-03 14:59:10 +08:00
enabled: true
2024-02-07 01:55:42 +08:00
goos: [linux, windows]
2024-06-23 16:47:11 +08:00
goarch:
- amd64
- "386"
2023-05-04 12:23:24 +08:00
archives:
-
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
format: binary
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
changelog:
sort: desc
filters:
exclude:
- '^MERGE'
- "{{ .Tag }}"
- "^docs"
release:
github:
owner: chainreactors
name: spray
draft: true