fix android ci job (sdkmanager installation)

This commit is contained in:
timka123 committed 2026-10-22 18:54:15 +03:00
1 parent 6ae1a1a73d
commit b1c6e6fe1e
1 file changed
+6
+6
View File
@@ -35,7 +35,13 @@ fi
export PATH="$SDK_ROOT/cmdline-tools/latest/bin:$PATH" export PATH="$SDK_ROOT/cmdline-tools/latest/bin:$PATH"
echo "==> licences" echo "==> licences"
# `yes` writes forever; once sdkmanager has read every licence it exits and
# `yes` dies of SIGPIPE. With `pipefail` that becomes exit 141 and fails the
# job, so the pipeline is judged on sdkmanager's status alone. Real failures
# (no network, bad SDK root) still fail it.
set +o pipefail
yes | sdkmanager --sdk_root="$SDK_ROOT" --licenses >/dev/null yes | sdkmanager --sdk_root="$SDK_ROOT" --licenses >/dev/null
set -o pipefail
echo "==> platform-tools, platforms;android-${COMPILE_SDK}.0, build-tools;${BUILD_TOOLS}" echo "==> platform-tools, platforms;android-${COMPILE_SDK}.0, build-tools;${BUILD_TOOLS}"
sdkmanager --sdk_root="$SDK_ROOT" \ sdkmanager --sdk_root="$SDK_ROOT" \