Add armv7a emulator CI job#34
Merged
jappeace merged 4 commits intojappeace:masterfrom Apr 7, 2026
Merged
Conversation
Enables haskell-mobile to cross-compile for armv7a-android, targeting Wear OS devices that ship 32-bit ARM userspace only (e.g. OnePlus Watch 3). Key changes: - Parameterize nix/lib.nix, cross-deps.nix, android.nix with androidArch - Multi-arch APK support in mkApk (accepts sharedLibs list) - Update nixpkgs pin for GHC LLVM backend fix (NixOS/nixpkgs#440774) - Patch nixpkgs compiler-rt for armv7a: add to ARM32 arch set, fix baremetal arch detection, exclude os_version_check.c (no pthread.h) - Patch LLVM package set: use libstdcxxClang (no libcxx dep) for Android to avoid unbuildable libcxx bootstrap (GNU ld.bfd can't link Android libs) - Disable profiled libraries for armv7a (LLVM ARM backend llc crash in ARMAsmPrinter::emitXXStructor) Closes jappeace#28 Prompt: continue implementing armv7a-android support (issue jappeace#28), fixing libcxx bootstrap linker issue and LLVM profiling crash Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Parameterize emulator-all.nix with androidArch so the same test infrastructure can build single-arch APKs for either aarch64 or armv7a. Add emulator-armv7a attribute to ci.nix and a matching GitHub Actions job that builds and runs the armv7a emulator integration tests. Prompt: Implement the plan to add armv7a emulator CI job Tokens: ~70k input, ~5k output Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Prompt: explain what armeabi-v7a is for in CI and nix code Tokens: ~80k input, ~1k output Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
API 34 x86_64 emulator only has arm64-v8a translation, not armeabi-v7a. API 30 google_apis_playstore still includes 32-bit ARM translation, which is needed to run Wear OS armv7a APKs in the emulator. Prompt: fix armv7a emulator CI failing with INSTALL_FAILED_NO_MATCHING_ABIS Tokens: ~100k input, ~3k output Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
5 tasks
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
nix/emulator-all.nixwithandroidArchso the same test infrastructure builds single-arch APKs for either aarch64 or armv7aemulator-armv7aattribute tonix/ci.nixandroid-armv7a-emulatorGitHub Actions job that builds and runs armv7a emulator integration testsDepends on #33 (armv7a cross-compilation support).
Test plan
nix-instantiate nix/ci.nix -A emulator-allevaluates successfully (aarch64 path unchanged)nix-instantiate nix/ci.nix -A emulator-armv7aevaluates successfully (new armv7a path)androidjob passes (existing aarch64 emulator tests)android-armv7a-emulatorjob passes (new armv7a emulator tests)🤖 Generated with Claude Code