-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(arm): Makefile add armv6 and arm64 to releases #35
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just one quick question to help my understanding (not an arm user)
@@ -54,10 +54,16 @@ release: lint test | |||
mkdir release | |||
GOOS=darwin GOARCH=amd64 go build -ldflags="-X main.VERSION=${VERSION}" -o release/$(BINARY)-darwin-amd64 github.com/pusher/oauth2_proxy | |||
GOOS=linux GOARCH=amd64 go build -ldflags="-X main.VERSION=${VERSION}" -o release/$(BINARY)-linux-amd64 github.com/pusher/oauth2_proxy | |||
GOOS=linux GOARCH=arm64 go build -ldflags="-X main.VERSION=${VERSION}" -o release/$(BINARY)-linux-arm64 github.com/pusher/oauth2_proxy | |||
GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-X main.VERSION=${VERSION}" -o release/$(BINARY)-linux-armv6 github.com/pusher/oauth2_proxy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am I right in thinking that if we changed this to GOARM=7
then it wouldn't run on original Pi's and Pi zeros whereas currently it runs on all Pi's?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that is correct. It allows new v7 only asm instructions to be used for the build that the zero doesn't have. v7 is a superset of v6.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed.
With go and dep dependencies I decided to just leave this at armv6 for now.
As it builds and runs on my armv7 I figure it's safe to start with.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks
Description
Update
release
target of Makefile to include building armv6 and arm64 binaries.Note: it seems possible to build all binaries on amd64 or armv6 (with dep changes).
Motivation and Context
On path to close #16 .
Docker images to come later.
How Has This Been Tested?
On armv7 RPi 3B tested version/etc. Not doing full proxy workflow:
Same again on arm64 Rock64 SBC:
Checklist: