Skip to content

ci(release): pin newer cross NDK image for aarch64-linux-android - #86

Merged
Mikola Lysenko (mikolalysenko) merged 1 commit into
mainfrom
ci/android-cross-image-pin
May 27, 2026
Merged

Mikola Lysenko (mikolalysenko) merged 1 commit into
mainfrom
ci/android-cross-image-pin

Conversation

@mikolalysenko

Copy link
Copy Markdown
Collaborator

Summary

  • Release builds for aarch64-linux-android were failing with ld: cannot find -lunwind. Modern rustc emits -lunwind for Android targets, but the NDK bundled in cross 0.2.5's default Android image doesn't ship libunwind on the linker path (Target aarch64-linux-android link failure: unwind. cross-rs/cross#1222, 0.17.7. briansmith/ring#1853).
  • Add a Cross.toml that overrides only the Android target to a digest-pinned cross main image (NDK r25+, libunwind available). All other targets keep their existing cross 0.2.5 images.
  • Pinned by sha256 digest, not by floating :main tag, to stay reproducible.

Test plan

  • Run the Release workflow in dry-run mode and confirm the aarch64-linux-android matrix job links cleanly.
  • Confirm no other matrix targets regressed (they should be untouched — the override is target-scoped).
The default image bundled with cross 0.2.5 ships an NDK whose sysroot
lacks libunwind on the linker path. Modern rustc emits `-lunwind` for
Android targets, so the release build fails with
`ld: cannot find -lunwind`.

Override just the Android target to a digest-pinned cross main image,
which ships an NDK that has libunwind available. All other targets
keep their default cross 0.2.5 images.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mikolalysenko
Mikola Lysenko (mikolalysenko) merged commit c20619b into main May 27, 2026
42 checks passed
@mikolalysenko
Mikola Lysenko (mikolalysenko) deleted the ci/android-cross-image-pin branch May 27, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants