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

Support aarch64-linux hosts #1612

Closed
1 of 2 tasks
lilith opened this issue Jan 21, 2025 · 1 comment
Closed
1 of 2 tasks

Support aarch64-linux hosts #1612

lilith opened this issue Jan 21, 2025 · 1 comment

Comments

@lilith
Copy link

lilith commented Jan 21, 2025

Checklist

Describe your request

Creating aarch64-musl builds - and testing them - is very useful. Github actions supports custom runners for Ubuntu 22/24 aarch64. However, I can't run cross on that platform (as far as I can tell, using CI-ready binaries).

Using QEMU for integration tests is a bit slow. Would aarch64 support be difficult?

Describe why this would be a good inclusion for cross

Creating aarch64-musl builds - and testing them natively - is very useful.

autarch added a commit to houseabsolute/actions-rust-cross that referenced this issue Jan 21, 2025
If the target is ARM and the host is ARM, this should work with just `cargo`. I'm not sure if this
works for all ARM host/target combos, or if the CPU architecture must be an exact match.

But it doesn't really matter too much, since at least for now there's no ARM builds for
`cross` (cross-rs/cross#1612). So even if cross-compilation doesn't work
natively, we couldn't use `cross` in this case either.

I also rewrote the `set-cross-compile.sh` in Python. By "I", I mean I had Claude do it and then I
tweaked it.
@Emilgardis
Copy link
Member

I agree! This is actually already supported, it's just that we lack the images. See #751 where I have some examples of this working

Duplicate of #751

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants