Skip to content

Commit 56d64e7

Browse files
authored
Merge pull request #34 from shirou/feature/update_go_releaser
update goreleaser to compile more platforms.
2 parents 147bedd + a1407ff commit 56d64e7

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

.circleci/config.yml

+1-7
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,12 @@ jobs:
66
build:
77
docker:
88
# specify the version
9-
- image: circleci/golang:1.15.6-buster
10-
11-
# Specify service dependencies here if necessary
12-
# CircleCI maintains a library of pre-built images
13-
# documented at https://circleci.com/docs/2.0/circleci-images/
14-
# - image: circleci/postgres:9.4
9+
- image: cimg/go:1.18.1
1510

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

.goreleaser.yaml

+16-5
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,32 @@ builds:
88
- linux
99
- windows
1010
- darwin
11+
- freebsd
12+
- netbsd
13+
- openbsd
1114
goarch:
1215
- 386
1316
- amd64
1417
- arm64
18+
goarm:
19+
- 6
20+
- 7
1521
ignore:
1622
- goos: darwin
1723
goarch: 386
18-
- goos: windows
19-
goarch: arm64
24+
# - goos: windows
25+
# goarch: arm64
2026
archives:
21-
- files:
22-
- mqttcli_*
27+
- format: binary
28+
name_template: '{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
29+
files:
30+
- mqttcli_*
31+
format_overrides:
32+
- goos: windows
33+
format: zip
2334
changelog:
2435
sort: asc
2536
filters:
2637
exclude:
2738
- '^docs:'
28-
- '^test:'
39+
- '^test:'

0 commit comments

Comments
 (0)