From 3f4aa9b6d2e7d1afb7efc6884a175c688280ab12 Mon Sep 17 00:00:00 2001 From: shirou Date: Mon, 25 Apr 2022 13:37:05 +0000 Subject: [PATCH 1/2] update goreleaser to compile more platforms. --- .goreleaser.yaml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 6419ba1..1a952a0 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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:' \ No newline at end of file + - '^test:' From a1407ff0fe8c496950afa020768d405111a4b60c Mon Sep 17 00:00:00 2001 From: shirou Date: Mon, 25 Apr 2022 13:38:39 +0000 Subject: [PATCH 2/2] update circleci image. --- .circleci/config.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 371309d..6f00899 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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