-
Notifications
You must be signed in to change notification settings - Fork 179
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
Adding support for windows-arm64 #457
Conversation
This PR is a follow up PR of this #455 |
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
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.
@koushdey The CI test failed. Could you fix that before merging?
Makefile
Outdated
build-windows: | ||
build-windows: build-windows-amd64 build-windows-arm64 | ||
|
||
.PHONY: build-windows-amd64: |
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.
It seems there is an extra colon :
after amd64
.
Codecov Report
@@ Coverage Diff @@
## main #457 +/- ##
=======================================
Coverage 55.69% 55.69%
=======================================
Files 6 6
Lines 237 237
=======================================
Hits 132 132
Misses 90 90
Partials 15 15 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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
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.
@koushdey The makefile still does not look right. Could you revise according to the given suggestion?
Makefile
Outdated
build-windows: build-windows-amd64 build-windows-arm64 | ||
|
||
.PHONY: build-windows-amd64 | ||
GOARCH=amd64 CGO_ENABLED=0 GOOS=windows go build -v --ldflags="$(LDFLAGS)" \ | ||
-o bin/windows/amd64/$(CLI_EXE).exe $(CLI_PKG) | ||
|
||
.PHONY: build-windows-arm64 | ||
build-windows: | ||
GOARCH=arm64 CGO_ENABLED=0 GOOS=windows go build -v --ldflags="$(LDFLAGS)" \ | ||
-o bin/windows/arm64/$(CLI_EXE).exe $(CLI_PKG) |
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.
build-windows: build-windows-amd64 build-windows-arm64 | |
.PHONY: build-windows-amd64 | |
GOARCH=amd64 CGO_ENABLED=0 GOOS=windows go build -v --ldflags="$(LDFLAGS)" \ | |
-o bin/windows/amd64/$(CLI_EXE).exe $(CLI_PKG) | |
.PHONY: build-windows-arm64 | |
build-windows: | |
GOARCH=arm64 CGO_ENABLED=0 GOOS=windows go build -v --ldflags="$(LDFLAGS)" \ | |
-o bin/windows/arm64/$(CLI_EXE).exe $(CLI_PKG) | |
build-windows: build-windows-amd64 build-windows-arm64 | |
.PHONY: build-windows-amd64 | |
build-windows-amd64: | |
GOARCH=amd64 CGO_ENABLED=0 GOOS=windows go build -v --ldflags="$(LDFLAGS)" \ | |
-o bin/windows/amd64/$(CLI_EXE).exe $(CLI_PKG) | |
.PHONY: build-windows-arm64 | |
build-windows-arm64: | |
GOARCH=arm64 CGO_ENABLED=0 GOOS=windows go build -v --ldflags="$(LDFLAGS)" \ | |
-o bin/windows/arm64/$(CLI_EXE).exe $(CLI_PKG) |
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.
Added the suggestion. Please have a look
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
@shizhMSFT @qweeah Can you merge the PR if all looks good? |
build-windows: | ||
build-windows: build-windows-amd64 build-windows-arm64 | ||
.PHONY: build-windows-amd64 | ||
build-windows-amd64: |
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.
A empty line is required between makefile items for consistency and readability.
For example:
a:
Build a
b:
Build b
c:
Build c
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 just checked if modified target can be made, it's better to add empty line between items.
@koushdey Could you format the makefile as requested? |
Sorry I can't. I am not a maintainer :P |
Signed-off-by: Koushik Dey <57134947+koushdey@users.noreply.github.com>
Signed-off-by: Koushik Dey <57134947+koushdey@users.noreply.github.com>
Signed-off-by: Koushik Dey <57134947+koushdey@users.noreply.github.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
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. Formatted with newlines to unblock merging.
Signed-off-by: Koushik Dey <57134947+koushdey@users.noreply.github.com>
This PR adds changes to support ORAS CLI on windows 64 Architecture.
Signed-off-by: Koushik Dey 57134947+koushdey@users.noreply.github.com