Skip to content

Commit

Permalink
Merge pull request #307 from segmentio/arm64
Browse files Browse the repository at this point in the history
Add support for linux/arm64
  • Loading branch information
Julien Fabre authored Jun 7, 2021
2 parents 3346084 + 235234a commit 53baa2b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ linux: dist/chamber-$(VERSION)-linux-amd64
dist/chamber-$(VERSION)-linux-amd64: | dist/
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -trimpath $(LDFLAGS) -o $@

dist/chamber-$(VERSION)-linux-arm64: | dist/
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -trimpath $(LDFLAGS) -o $@

dist/chamber-$(VERSION)-windows-amd64.exe: | dist/
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -trimpath $(LDFLAGS) -o $@

Expand Down
9 changes: 9 additions & 0 deletions Makefile.release
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ publish-github-linux: dist/chamber-$(VERSION)-linux-amd64 | github-release
--name chamber-$(VERSION)-linux-amd64 \
--file $<

publish-github-linux-arm64: dist/chamber-$(VERSION)-linux-arm64 | github-release
github-release upload \
--security-token $$GH_LOGIN \
--user segmentio \
--repo chamber \
--tag $(VERSION) \
--name chamber-$(VERSION)-linux-arm64 \
--file $<

publish-github-windows: dist/chamber-$(VERSION)-windows-amd64.exe | github-release
github-release upload \
--security-token $$GH_LOGIN \
Expand Down

0 comments on commit 53baa2b

Please sign in to comment.