-
Notifications
You must be signed in to change notification settings - Fork 321
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
Add aarch64/arm64 to CI #1036
Add aarch64/arm64 to CI #1036
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 reasonable at a glance, yeah, but using a matrix would be better indeed.
Would you mind approving the ci job to run? |
Gah, for some reason I was enrolled on some github experiment that didn't show the "approve and run" button. |
Seems somewhat known given the discussion in https://github.com/orgs/community/discussions/143787. |
Github is gradually moving ubuntu-latest to ubuntu-24.04 and the apt sources look slightly different. My fork and upstream ends up having different "ubuntu-latest", so I pin it to 24.
062a6c4
to
9bdf01b
Compare
Do you prefer that I squash the commits or not? ps. Github also "screwed" me over, in my fork I get |
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.
Thanks, this looks great. I'm a bit unsure about how reliable the cross-arch sources.list stuff is, it seems ideally it shouldn't be needed? But alas, let's try this.
The official repos don't have arm64 and the Ubuntu docker images uses ports.ubuntu.com, so I hope it is maintained. I tried using "cross" package as well for libc. But then I had issues running the tests that call executables. I guess std::process doesn't work with binfmt or something. One option would be to call all binary tests with "CARGO_..._RUNNER" if available. |
fixes #1032
This is a proof of concept to build and test arm64 executables. If this concept is acceptable then I would like to refactor to a "strategy matrix" build.
edit: The last build in my repo is successful: https://github.com/NickeZ/cbindgen/actions/runs/12596962803/job/35109043466, so hopefully this rebased version also works.