Skip to content

Commit

Permalink
Merge pull request #34 from shirou/feature/update_go_releaser
Browse files Browse the repository at this point in the history
update goreleaser to compile more platforms.
  • Loading branch information
shirou authored Apr 25, 2022
2 parents 147bedd + a1407ff commit 56d64e7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
8 changes: 1 addition & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,12 @@ jobs:
build:
docker:
# specify the version
- image: circleci/golang:1.15.6-buster

# 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
- image: cimg/go:1.18.1

#### TEMPLATE_NOTE: go expects specific checkout path representing url
#### expecting it in the form of
#### /go/src/github.com/circleci/go-tool
#### /go/src/bitbucket.org/circleci/go-tool
working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}}
steps:
- checkout

Expand Down
21 changes: 16 additions & 5 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,32 @@ builds:
- linux
- windows
- darwin
- freebsd
- netbsd
- openbsd
goarch:
- 386
- amd64
- arm64
goarm:
- 6
- 7
ignore:
- goos: darwin
goarch: 386
- goos: windows
goarch: arm64
# - goos: windows
# goarch: arm64
archives:
- files:
- mqttcli_*
- 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:'
- '^test:'

0 comments on commit 56d64e7

Please sign in to comment.