ci(android): build the APK+AAR on android/, src/ and crates/ changes #71
Loading…
Reference in a new issue
No description provided.
Delete branch "ci/android-verify"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Android changes ran zero CI.
ci.yml's path allowlist (src/**,crates/**,tests/**,Cargo.toml,Cargo.lock,ci.yml) cannot matchandroid/**, andandroid-release.ymlis dispatch-driven — so #70 (3 Kotlin files, 198 +/41 −) had no run at all and merged on an empty check list.missing run is not a merge traponly holds because Rust changes still ran; an android regression had nothing watching it.What this adds
.forgejo/workflows/android-ci.yml— one job on thedocker-amd64runner that runs the same gradle targets the release runs, through the same script (scripts/build-android-local.sh)::sdk:assembleRelease+:app:assembleRelease, Rust foraarch64-linux-androidviacargo-ndk, the UniFFI bindings, then packaging. So a Kotlin compile break —nav.navigate("wallet")with no destination, a call site missingonOpenWallet, a staleself.inner.*— fails the PR instead of the tag.Verification inside the job: packaged
lib/arm64-v8a/libonionwire_sdk.sopresent in the APK,classes*.dex,sha256sum -con both artifacts,apksigner verify --print-certs,aapt dump badging.Differences from a release, all deliberate:
ONIONWIRE_REQUIRE_RELEASE_KEY=falseand no keystore, so Gradle falls back to the debug cert. Expected output in this job;android-release.ymlstill fails closed with the release key.android-release.yml's concurrency group (onionwire-android-release-v2) and its four runner volumes (SDK/NDK, cargo registry, cargo target, Gradle). The build is warm (~9 min, matching the release job's recent runs) instead of re-downloading a gigabyte of SDK + NDK, and the two workflows are serialized so they never write each other's volumes. Container name uses a distinctonionwire-android-ci-<run_id>prefix.Triggers:
push: mainandpull_requestwhenandroid/**,src/**,crates/**,Cargo.toml,Cargo.lock,scripts/build-android-local.shor the workflow change; plusworkflow_dispatch.src/**andcrates/**are in the list on purpose — a core or SDK signature change is what breaks the APK (theE0609: no field inner on type &Wireclass).Why not
android/**inci.yml'spathsAdded there, an android-only diff would start
test+sdkon the Pi — cargo work that proves nothing about Kotlin — and would still not build the app, i.e. a green check for the wrong suite. The alternative, job-level "did the diff touchandroid/?" gates insideci.yml, means a mis-detecting gate can skip the Rust suite and hand out a false green onmain. A separate workflow keepsci.yml's Rust semantics and path allowlist exactly as they are and lets the runner's own paths filter decide.Docs: README workflow list + a short "Android CI (not a release)" note in
docs/RELEASING.md.CI on this PR
android-ciruns on this PR head (the workflow file itself matches the filter). The expected-result section below is filled from that run.