Skip to content

Commit

Permalink
switch ghr install over to go install to avoid chnaging of go.mod and…
Browse files Browse the repository at this point in the history
… remove darwin/386 build as go 1.15 dropped support (#187)
  • Loading branch information
dylanhitt authored Feb 21, 2022
1 parent d512726 commit 2be2330
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ jobs:
- image: circleci/golang:1.16
steps:
- checkout
- run: go install github.com/tcnksm/[email protected]
- run: make release
- run: go get -u github.com/tcnksm/ghr
- run:
name: Publish release
command: ghr $GIT_RELEASE_TAG release/
Expand Down
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,6 @@ release-darwin-amd64:
$(info INFO: Starting build $@)
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.version=$(GIT_RELEASE_TAG) -s -w" -o release/$(cmd)-darwin-amd64 $(exe)

release-darwin-386:
$(info INFO: Starting build $@)
CGO_ENABLED=0 GOOS=darwin GOARCH=386 go build -ldflags "-X main.version=$(GIT_RELEASE_TAG) -s -w" -o release/$(cmd)-darwin-386 $(exe)

release-windows-amd64:
$(info INFO: Starting build $@)
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-X main.version=$(GIT_RELEASE_TAG) -s -w" -o release/$(cmd)-windows-amd64.exe $(exe)
Expand All @@ -117,4 +113,4 @@ release-windows-386:
$(info INFO: Starting build $@)
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags "-X main.version=$(GIT_RELEASE_TAG) -s -w" -o release/$(cmd)-windows-386.exe $(exe)

release: release-amd64 release-arm release-386 release-darwin-amd64 release-darwin-386 release-windows-amd64 release-windows-386
release: release-amd64 release-arm release-386 release-darwin-amd64 release-windows-amd64 release-windows-386

0 comments on commit 2be2330

Please sign in to comment.