ci(android): fix CI runner (JDK/SDK/gradlew) + variant test #4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user