Skip to content

Fix cross-compilation error: use native ARM64 runner for Linux builds#269

Merged
ck3mp3r merged 1 commit intomainfrom
fix/use-native-arm64-runner
Oct 12, 2025
Merged

Fix cross-compilation error: use native ARM64 runner for Linux builds#269
ck3mp3r merged 1 commit intomainfrom
fix/use-native-arm64-runner

Conversation

@ck3mp3r
Copy link
Owner

@ck3mp3r ck3mp3r commented Oct 12, 2025

Summary

  • Updates release workflow to use 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)

Problem

GitHub Actions was failing with cross-compilation errors when building aarch64-linux targets:

error: executing '/nix/store/.../bash': Exec format error

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) ← Fixed

Test Plan

  • Docker test confirms native aarch64-linux builds work perfectly
  • Verify GitHub Actions workflow succeeds with native ARM64 runner
  • Confirm all three platforms build successfully

Additional Context

This uses GitHub's latest ARM64 Linux runners which became GA in August 2025 and are free for public repositories.

- 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
@ck3mp3r ck3mp3r merged commit f06f24f into main Oct 12, 2025
1 check passed
@ck3mp3r ck3mp3r deleted the fix/use-native-arm64-runner branch October 12, 2025 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant