version: 2 before: hooks: - make web-embed builds: - id: default main: ./cmd/weimar binary: weimar env: - CGO_ENABLED=0 ldflags: - -s -w -X main.Version={{.Version}} -X main.BuildDate={{.Date}} goos: - linux # - windows - darwin goarch: - arm64 - amd64 - "386" dir: . archives: - formats: [tar.gz] # this name template makes the OS and Arch compatible with the results of `uname`. name_template: >- {{ .ProjectName }}_ {{- title .Os }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end }} # use zip for windows archives #format_overrides: # - goos: windows # formats: [zip] changelog: sort: asc filters: exclude: - "^docs:" - "^test:" upx: - # Templates: allowed. enabled: true # Filter by build ID. ids: [default] # Filter by GOOS. goos: [linux, darwin] # Filter by GOARCH. goarch: [amd64, arm64] # Compress argument. # Valid options are from '1' (faster) to '9' (better), and 'best'. compress: 9