Files
ecs/.goreleaser.yaml
spiritysdx ac3839a8eb update
2024-07-04 18:53:11 +08:00

50 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
before:
hooks:
- go mod download
- go generate ./...
builds:
- env:
- CGO_ENABLED=0 # 禁用 CGO强制静态链接
goos:
- linux
- windows
- darwin
- openbsd
- freebsd
goarch:
- amd64
- arm
- arm64
- 386
- s390x
- ppc64
- ppc64le
- riscv64
- mips
- mips64
- mipsle
- mips64le
- loong64
goarm:
- 5
- 6
- 7
gomips:
- hardfloat
- softfloat
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{ .CommitDate }}
archives:
- name_template: >-
{{ .ProjectName }}_{{ .Version }}_{{ if eq .Os "openbsd" }}OpenBSD{{ else }}{{ title .Os }}{{ end }}_{{ if eq .Arch "386" }}i386{{ else if eq .Arch "amd64" }}x86_64{{ else }}{{ .Arch }}{{ end }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'