-
Notifications
You must be signed in to change notification settings - Fork 7
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
Platform Support x86_64 & aarch64 #5
Comments
@metaskills Any updates on the plans for |
No, I have yet to crack the nut on the Codespaces GPU Beta and/or GitHub Actions support for arm64 or how those might be needed or avoided. It is on my list tho. Do you have experience or thoughts here? Would really appreciate the help. |
@metaskills I also didn't know but seems there's no native way to run ARM64 yet. But cross-compile seems to be quite simple based on cross (sample with the Cargo Github action: https://github.com/jhuiting/rust-cross-compile-test/blob/master/.github/workflows/build.yml). |
cargo-lambda has worked for me to build for arm64 on Github actions for any Rust project. It uses cargo-zigbuild under the hood and creates a folder with the project name and a binary inside named bootstrap. I have not tried their lambda extensions though, which may be a better use case for this project. For regular builds I would do: - name: Install Cargo lambda
run: pip3 install cargo-lambda
- name: Cargo build
run: cargo lambda build --release --arm64 |
I recently did some work in the Lamby cookiecutter to build a multi-platform image so the Python cookiecutter library worked on arm, see here: https://github.com/customink/lamby-cookiecutter/blob/master/.github/workflows/cc-in-docker.yml I was surprised how easy this was. So I think there is a mix of the cargo work above with this. I'd love to work or see a PR soon. Seems really straightforward. |
I've started working on this so I can ensure the latest Lamby docs around this are right. I want folks to easily ship arm64 with a few lines of change. Right now, I think there is a blocker with Crypteia not working on arm64. |
Can folks try out the new v1.1.0 images? They should automatically point to the proper architecture. Meaning if you are building an Amazon Linux 2
Debian/Ubuntu
|
🤦♂️ I just noticed the manifest has
|
Will see if this helps. 78d56e8 |
Interesting this got added to the devcontainer/ci project. Also, here is the link to base Linux ARM64 actions runner too. |
So... v1.1.0 is done. Give it a whirl. |
Closing this out, all done. |
Might have to change our Dockerfile around a bit if not Tier 1. More details here. https://doc.rust-lang.org/nightly/rustc/platform-support.html
The text was updated successfully, but these errors were encountered: