Skip to content

Commit

Permalink
add goreleaser target to build for raspberry pi
Browse files Browse the repository at this point in the history
  • Loading branch information
creativeprojects committed Jun 23, 2020
1 parent caf0591 commit ab527c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .goreleaser.yml
Expand Up @@ -20,6 +20,9 @@ builds:
- amd64
- arm
- arm64
goarm:
- 6
- 7
ignore:
- goos: darwin
goarch: arm
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -51,7 +51,7 @@ build-linux:
GOOS="linux" GOARCH="amd64" $(GOBUILD) -o $(BINARY_LINUX) -v -ldflags "-X 'main.commit=${BUILD_COMMIT}' -X 'main.date=${BUILD_DATE}' -X 'main.builtBy=make'"

build-pi:
GOOS="linux" GOARCH="arm" GOARM="5" $(GOBUILD) -o $(BINARY_PI) -v -ldflags "-X 'main.commit=${BUILD_COMMIT}' -X 'main.date=${BUILD_DATE}' -X 'main.builtBy=make'"
GOOS="linux" GOARCH="arm" GOARM="6" $(GOBUILD) -o $(BINARY_PI) -v -ldflags "-X 'main.commit=${BUILD_COMMIT}' -X 'main.date=${BUILD_DATE}' -X 'main.builtBy=make'"

build-windows:
GOOS="windows" GOARCH="amd64" $(GOBUILD) -o $(BINARY_WINDOWS) -v -ldflags "-X 'main.commit=${BUILD_COMMIT}' -X 'main.date=${BUILD_DATE}' -X 'main.builtBy=make'"
Expand Down

0 comments on commit ab527c0

Please sign in to comment.