Skip to content

feat(android): simulator#2827

Merged
richard-ramos merged 5 commits into
masterfrom
android-simulator
Jul 15, 2026
Merged

feat(android): simulator#2827
richard-ramos merged 5 commits into
masterfrom
android-simulator

Conversation

@richard-ramos

@richard-ramos richard-ramos commented Jul 14, 2026

Copy link
Copy Markdown
Member

Summary

Adds runtime coverage to the Android mobile CI by running the x86_64 libp2p_ffi_android_check binary inside an Android emulator.

The workflow now:

  • Enables KVM for the x86_64 Android job
  • Boots an API 23 x86_64 emulator
  • Pushes liblibp2p.so, libc++_shared.so, and the check binary to the device
  • Runs the check with LD_LIBRARY_PATH set and fails CI unless it exits with RC=0

Affected Areas

  • Build / Tooling
    Android GitHub Actions workflow for the mobile FFI build.

Impact on Library Users

No API or runtime behavior changes for library users. This only expands CI validation for Android artifacts.

Risk Assessment

Low risk. The new emulator step is limited to the x86_64 Android CI matrix entry; arm64 continues to build and verify artifacts without emulator execution.

@richard-ramos richard-ramos changed the title Android simulator feat: android simulator Jul 14, 2026
@richard-ramos
richard-ramos marked this pull request as ready for review July 14, 2026 16:55
@richard-ramos
richard-ramos requested a review from a team as a code owner July 14, 2026 16:55
@richard-ramos
richard-ramos requested review from gmelodie and vladopajic and removed request for a team July 14, 2026 16:55
@richard-ramos richard-ramos changed the title feat: android simulator feat(android): simulator Jul 14, 2026

@gmelodie gmelodie left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

a mazing

@github-project-automation github-project-automation Bot moved this from new to In Progress in nim-libp2p Jul 14, 2026
Base automatically changed from android to master July 14, 2026 18:22
@richard-ramos
richard-ramos requested a review from a team July 14, 2026 18:22
@richard-ramos
richard-ramos force-pushed the master branch 2 times, most recently from 0da0bce to ae39cbb Compare July 14, 2026 21:51
@richard-ramos
richard-ramos enabled auto-merge July 15, 2026 01:33
@richard-ramos
richard-ramos added this pull request to the merge queue Jul 15, 2026
Merged via the queue into master with commit 1ce12fb Jul 15, 2026
38 of 39 checks passed
@richard-ramos
richard-ramos deleted the android-simulator branch July 15, 2026 02:33
@github-project-automation github-project-automation Bot moved this from In Progress to done in nim-libp2p Jul 15, 2026
@arnetheduck

Copy link
Copy Markdown
Contributor

hm, this looks interesting - could you backport something like this to nim-chronos so that its test suite run on android as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: done

Development

Successfully merging this pull request may close these issues.

4 participants