[BTAPP-57] Add Android native-code compile gate to app CI #85
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/BTAPP-57"
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?
Ticket
BTAPP-57 Compile the Android native code in CI
Summary
androidjob to.forgejo/workflows/app.yml, parallel to the existingcheckjob, path-filtered the same way (app/**)android/project per-run viabunx expo prebuild --platform android --no-install(no npm dependency), installs JDK 17 viaactions/setup-java@v4, and compiles the hand-written Kotlin inapp/modules/notification-doorbellplus merges its manifest via./gradlew :notification-doorbell:assembleDebug :app:processDebugMainManifest— the fast pair, not a fullassembleDebugcurl+unzipof a pinnedcommandlinetools-linux-11076708_latest.zip, thensdkmanager --licenses), notandroid-actions/setup-android@v3as originally planned — that action isn't in this Forgejo instance's action mirror (data.forgejo.org) and 404s. Seedocs/CI.mdfor the corrected explanation of how this instance resolves third-party actions.google-services.json(package name only, no real credentials) stands in for the real gitignored file, avoiding a CI secret~/.gradle+~/android-sdkare cached alongside the existing~/.bun/install/cacheentrydocs/CI.md, including the corrected action-mirror note aboveVerification
app/modules/notification-doorbell/android/src/main/java/com/budgettracker/doorbell/Doorbell.kt, confirmed against the raw runner log (not just the surface-level pass/fail status) for both ends:androidjob failed withe: .../Doorbell.kt:283:40 Syntax error: Expecting '"'./BUILD FAILED in 1m 2s— after successfully getting through checkout, bun install, JDK setup, SDK cmdline-tools install, and license acceptance, i.e. failing for the right reason and not some earlier toolchain gap.androidjob passed cleanly —BUILD SUCCESSFUL in 2m 19s,144 actionable tasks: 143 executed, 1 up-to-date, total job wall time ~2m48s (Gradle/SDK cache warm from the preceding run).sdkmanager --licensesinto a silent no-op (replaced by a newandroidCLI), causing aLicenceNotAcceptedExceptionunrelated to the probe — caught the same way (raw log, not just status) and fixed by pinning the long-stable build 11076708 (v11.0) instead.pull_request-triggered Actions run creation stalled for several pushes on this PR (webhook/post-receive succeeded each time, but no run was ever created). Restarting theforgejo-runnercontainer had no effect; restarting the mainforgejocontainer also did not restore thepull_requesttrigger path (still not firing as of this PR), but it did NOT lose the underlying data or affect the runner's ability to execute jobs — dispatching the workflow manually (POST .../actions/workflows/app.yml/dispatches,workflow_dispatchevent) against this PR's exact head commit worked immediately and is what produced the red/green proof above (tasks 337/339/341 = pull_request-triggered before the stall; 343/345 = workflow_dispatch after it). Thepull_request/pushtrigger stall on this Forgejo instance is still open and unrelated to this ticket's code — worth its own follow-up investigation/ticket; branch protection and normal PR checks will not run until it's fixed.