Skip to content

Commit

Permalink
Adding ARM building in Makefile (goss-org#275)
Browse files Browse the repository at this point in the history
* Adding ARM building in Makefile

* Adding goss-linux-arm as a build target
  • Loading branch information
elfgoh authored and BenjaminHerbert committed May 28, 2020
1 parent 8a2e8aa commit a80b064
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,17 @@ release/goss-linux-386: $(GO_FILES)
release/goss-linux-amd64: $(GO_FILES)
$(info INFO: Starting build $@)
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=$(TRAVIS_TAG) -s -w" -o release/$(cmd)-linux-amd64 $(exe)
release/goss-linux-arm: $(GO_FILES)
$(info INFO: Starting build $@)
CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -ldflags "-X main.version=$(TRAVIS_TAG) -s -w" -o release/$(cmd)-linux-arm $(exe)



release:
$(MAKE) clean
$(MAKE) build

build: release/goss-linux-386 release/goss-linux-amd64
build: release/goss-linux-386 release/goss-linux-amd64 release/goss-linux-arm

test-int: centos7 wheezy precise alpine3 arch
test-int-32: centos7-32 wheezy-32 precise-32 alpine3-32 arch-32
Expand Down

0 comments on commit a80b064

Please sign in to comment.