Skip to content

Commit

Permalink
Build arm binary on CircleCI (#24)
Browse files Browse the repository at this point in the history
* Build arm binary on CircleCI

* Fixed Makefile rule
  • Loading branch information
Juan Jose Medina authored Jan 14, 2021
1 parent 3519e1a commit 56036d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
- run: make cover
- run: make race-test
- run: make build
- run: make build/arm64
- store_artifacts:
path: /go/src/github.com/bitnami/gonit/dist/gonit/gonit
destination: gonit
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ build:
build/arm64:
@echo "+ $@"
@mkdir -p $(DIST_DIR)
@$(GO_BUILD) -o $(DIST_DIR)/arm64/gonit .
@strip $(DIST_DIR)/arm64/gonit
@GOARCH=arm64 $(GO_BUILD) -o $(DIST_DIR)/arm64/gonit .
@echo "*** Gonit binary created under $(DIST_DIR)/arm64/gonit ***"

clean:
Expand Down

0 comments on commit 56036d4

Please sign in to comment.