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

fix: avoid cross compiling on same architecture #917

Merged
merged 1 commit into from
Mar 18, 2025
Merged

Conversation

mmalenic
Copy link
Member

@mmalenic mmalenic commented Mar 18, 2025

This is related to failing filemanager builds on CodeBuild: https://github.com/umccr/orcabus/actions/runs/13912874550/job/38930505126?pr=912

I think this is an upstream issue - the RustFunction uses zig underneath to cross compile because the native cross compilation using cargo is not as convenient. This only occurs on some targets and I think this issue is related: ziglang/zig#23052

Either way, this is only affecting compilation with zig to aarch64 from an arm64 machine. For that case, it's better to just use cargo directly as there is no cross compilation.

Changes

  • Fixes the arm64 filemanager builds by avoiding cargo-zigbuild and just using cargo directly.

@mmalenic mmalenic self-assigned this Mar 18, 2025
@mmalenic mmalenic added filemanager an issue relating to the filemanager fix labels Mar 18, 2025
@mmalenic mmalenic added this pull request to the merge queue Mar 18, 2025
Merged via the queue into main with commit a7daa44 Mar 18, 2025
6 checks passed
@mmalenic mmalenic deleted the fix/cross-compile branch March 18, 2025 22:14
@alexiswl
Copy link
Member

Well done figuring this out!

Copy link
Member

@alexiswl alexiswl left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filemanager an issue relating to the filemanager fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants