diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..1a952a0 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,39 @@ +before: + hooks: + - go mod tidy +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - windows + - darwin + - freebsd + - netbsd + - openbsd + goarch: + - 386 + - amd64 + - arm64 + goarm: + - 6 + - 7 + ignore: + - goos: darwin + goarch: 386 +# - goos: windows +# goarch: arm64 +archives: + - format: binary + name_template: '{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' + files: + - mqttcli_* + format_overrides: + - goos: windows + format: zip +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:'