Private
Public Access
1
0

[android] fix sdkmanager runner issue
All checks were successful
Android Release / build-android-release (push) Successful in 10m1s

This commit is contained in:
2026-04-12 12:12:21 -07:00
parent 6d098c9f76
commit 7264cce5b8

View File

@@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
# Gitea's default act_runner labels map ubuntu-22.04 to node:16-bullseye,
# Gitea's default act_runner labels map ubuntu-latest to node:16-bullseye,
# so keep the GitHub-hosted actions on their Node 16-compatible v3 line.
- name: Install system dependencies
run: |
@@ -37,7 +37,12 @@ jobs:
unzip -q /tmp/android-commandlinetools.zip -d /tmp/android-commandlinetools
mv /tmp/android-commandlinetools/cmdline-tools "$ANDROID_SDK_ROOT/cmdline-tools/latest"
# sdkmanager exits successfully once it has consumed all input, which
# causes `yes` to receive SIGPIPE and return 141 under `pipefail`.
set +o pipefail
yes | "$ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager" --sdk_root="$ANDROID_SDK_ROOT" --licenses
set -o pipefail
"$ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager" --sdk_root="$ANDROID_SDK_ROOT" \
"platform-tools" \
"build-tools;33.0.1" \