1
0
mirror of https://github.com/shirou/mqttcli.git synced 2025-04-28 13:48:50 +08:00

Merge pull request #34 from shirou/feature/update_go_releaser

update goreleaser to compile more platforms.
This commit is contained in:
shirou 2022-04-25 22:41:09 +09:00 committed by GitHub
commit 56d64e7a99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 12 deletions

View File

@ -6,18 +6,12 @@ jobs:
build: build:
docker: docker:
# specify the version # specify the version
- image: circleci/golang:1.15.6-buster - image: cimg/go:1.18.1
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4
#### TEMPLATE_NOTE: go expects specific checkout path representing url #### TEMPLATE_NOTE: go expects specific checkout path representing url
#### expecting it in the form of #### expecting it in the form of
#### /go/src/github.com/circleci/go-tool #### /go/src/github.com/circleci/go-tool
#### /go/src/bitbucket.org/circleci/go-tool #### /go/src/bitbucket.org/circleci/go-tool
working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}}
steps: steps:
- checkout - checkout

View File

@ -8,18 +8,29 @@ builds:
- linux - linux
- windows - windows
- darwin - darwin
- freebsd
- netbsd
- openbsd
goarch: goarch:
- 386 - 386
- amd64 - amd64
- arm64 - arm64
goarm:
- 6
- 7
ignore: ignore:
- goos: darwin - goos: darwin
goarch: 386 goarch: 386
- goos: windows # - goos: windows
goarch: arm64 # goarch: arm64
archives: archives:
- files: - format: binary
- mqttcli_* name_template: '{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
files:
- mqttcli_*
format_overrides:
- goos: windows
format: zip
changelog: changelog:
sort: asc sort: asc
filters: filters: