Skip to content
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

Windows arm64 build #13029

Merged
merged 2 commits into from May 23, 2024
Merged

Windows arm64 build #13029

merged 2 commits into from May 23, 2024

Conversation

asmitde
Copy link
Contributor

@asmitde asmitde commented May 12, 2024

What this PR does / why we need it:
Adds support for Windows arm64 builds.

Special notes for your reviewer:
Cross compiled Helm for windows/arm64 on Surface Pro X (ARM64) in WSL2 with Go v1.22.2 linux/arm64. Tested the windows/arm64 binary in the Windows 11 powershell environment.

If applicable:

  • this PR contains documentation
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 12, 2024
@asmitde asmitde force-pushed the asmitde/windows-arm64-build branch from aa9e8a1 to a579f50 Compare May 12, 2024 08:48
Signed-off-by: Asmit De <asmit.de@outlook.com>
@asmitde asmitde force-pushed the asmitde/windows-arm64-build branch from a579f50 to f615c1a Compare May 12, 2024 08:57
@rain-on
Copy link

rain-on commented May 17, 2024

I've replicated the behaviour specified in the PR.

Compiling on OSX 14.4 using:
GOOS=windows GOARCH=arm64 make

Then transferred the bin\helm to an arm64 virtual-machine, renamed to helm.exe, and successfully executed the binary.
👍

Copy link

@rain-on rain-on left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rain-on
Copy link

rain-on commented May 17, 2024

Should pkg/plugin/plugin_test.go need an additional line after 95 to include arm64 windows?
{OperatingSystem: "windows", Architecture: "arm64", Command: "echo -n win-arm64"},

Then update the remainder of the file to handle the new architecure

Copy link
Collaborator

@mattfarina mattfarina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We discussed this in a Helm developer call on May 16, 2024 and decided to approve it.

@mattfarina mattfarina merged commit 61086e1 into helm:main May 23, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants