46 lines
719 B
YAML
46 lines
719 B
YAML
version: 2
|
|
|
|
before:
|
|
hooks:
|
|
- go mod tidy
|
|
|
|
builds:
|
|
- id: qv
|
|
main: ./cmd/web
|
|
binary: qv
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- linux
|
|
- windows
|
|
- darwin
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
goamd64:
|
|
- v1
|
|
- v2
|
|
- v3
|
|
- v4
|
|
goarm64:
|
|
- v8.0
|
|
ldflags:
|
|
- -s -w
|
|
|
|
archives:
|
|
- id: qv-archive
|
|
allow_different_binary_count: true
|
|
name_template: >-
|
|
{{ .ProjectName }}_
|
|
{{- .Version }}_
|
|
{{- .Os }}_
|
|
{{- .Arch }}_
|
|
{{- if eq .Arch "amd64" }}{{ .Amd64 }}
|
|
{{- else if eq .Arch "arm64" }}{{ .Arm64 }}
|
|
{{- end }}
|
|
format: tar.gz
|
|
format_overrides:
|
|
- goos: windows
|
|
formats: [ "zip" ]
|
|
|