ci(android): fix CI runner (JDK/SDK/gradlew) + variant test #4
Reference in New Issue
Block a user
No description provided.
Delete Branch "ci/android-build-fixes"
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?
Fix the M0 CI so it actually runs on the self-hosted runner
PR #2 merged the M0 scaffold with the initial CI workflow, which fails on this runner. This is the fix-forward, on a fresh branch off current
mainso the workflow is unambiguously the corrected version. Four issues, each surfaced by a real run:Set up JDK 17→getaddrinfo EAI_AGAIN api.adoptium.netopenjdk-17-jdk-headlessvia apt + exportJAVA_HOME; dropactions/setup-java(the runner can't resolve Adoptium; Ubuntu mirrors work)sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.0"./gradlew: Permission denied(exit 126)chmod +x ./gradlewin the run step — this runner's checkout drops the git exec bit (I also set the 100755 bit, but that alone didn't survive checkout)testReleaseUnitTestfailedBuildConfig.DEBUGassertion (thetesttask runs both debug and release variants); assertVERSION_NAME. Also removed a redundantandroid:label(RedundantLabel lint)Verification
Built locally against the Android Studio SDK (platform 35 + build-tools 35.0.0):
./gradlew lint test assembleDebugpasses and produces a debug APK. This PR's own run is the fresh end-to-end check on the runner.Note on the earlier PRs
#2 merged early (at its first commit), so these fixes never landed; #3 (a full-scaffold re-do off pre-merge main) was redundant and is closed. This focused PR is the one to review/merge.
AI-assisted contribution disclosure: authored with Claude Code (Claude Opus); commit carries a
Co-Authored-By: Claudetrailer.🤖 Generated with Claude Code