diff --git a/.goreleaser.yml b/.goreleaser.yml index 6f4db50..dbed0ce 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -8,17 +8,26 @@ before: # you may remove this if you don't need go generate - go generate ./... builds: - - env: + # windows and linux use upx compression + - id: gm1 + env: - CGO_ENABLED=0 goos: - linux - windows - - darwin ldflags: - -s -w -X main.version={{.Version}} hooks: post: - upx "{{ .Path }}" + # mac builds on github has problems with upx compression + - id: gm2 + env: + - CGO_ENABLED=0 + goos: + - darwin + ldflags: + - -s -w -X main.version={{.Version}} archives: - replacements: darwin: MacOS