Fix cross-compilation error: use native ARM64 runner for Linux builds#269
Merged
Fix cross-compilation error: use native ARM64 runner for Linux builds#269
Conversation
- Change from ubuntu-latest to ubuntu-24.04-arm for aarch64-linux builds - Resolves cross-compilation 'Exec format error' with backtrace-ext dependency - Uses GitHub's native ARM64 runners (GA since August 2025) - Each target now builds on its native architecture for optimal performance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ubuntu-24.04-armfor aarch64-linux buildsProblem
GitHub Actions was failing with cross-compilation errors when building aarch64-linux targets:
The issue was that we were using
ubuntu-latest(x86_64) runners to build aarch64-linux targets via cross-compilation, which fails with certain dependencies like backtrace-ext.Solution
Changed the workflow to use native ARM64 runners for each target:
ubuntu-latest→ x86_64-linux (native)macos-14→ aarch64-darwin (native)ubuntu-24.04-arm→ aarch64-linux (native) ← FixedTest Plan
Additional Context
This uses GitHub's latest ARM64 Linux runners which became GA in August 2025 and are free for public repositories.