ci(android): stop yes|sdkmanager SIGPIPE from failing the step
All checks were successful
PR Checks / android-build (pull_request) Successful in 8m43s

The SDK install succeeds (reaches 100% unzip) but the step reported exit
141: with -o pipefail, 'yes' dying of SIGPIPE (128+13) once sdkmanager
closes the pipe poisons the pipeline status. Disable pipefail for that line
so only sdkmanager's exit gates success.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-07-19 13:43:31 -05:00
parent 3647d25be2
commit e714980600

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