ci(android): fix CI runner (JDK/SDK/gradlew) + variant test #4

Merged
whitlocktech merged 2 commits from ci/android-build-fixes into main 2026-07-19 18:52:57 +00:00
Showing only changes of commit e714980600 - Show all commits

View File

@@ -44,9 +44,14 @@ jobs:
uses: android-actions/setup-android@v3
# Install exactly what the build targets so it never depends on AGP's
# build-time auto-download. `yes |` accepts any license prompts.
# build-time auto-download. `yes |` accepts any license prompts; `set
# +o pipefail` so `yes` dying with SIGPIPE (exit 141) once sdkmanager
# closes the pipe doesn't fail the step -- sdkmanager's own exit, last in
# the pipeline, still gates success.
- name: Install Android SDK packages
run: yes | sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.0"
run: |
set +o pipefail
yes | sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.0"
- name: Cache Gradle
uses: actions/cache@v4