fuzzyworld

ai-chat-android-auto / commit

CI: use curl instead of wget for SDK download

3a8e6502863c0a4c8fc37accc6ae63ff79d03973 · Pavel Safronov · 2026-05-14 21:07:28 -0700 · parents 83a6244083df

CI: use curl instead of wget for SDK download

The minimal wget in eclipse-temurin:17-jdk-focal doesn't support
--fail/--show-error. Switch to curl --fail which is already installed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
 .gitlab-ci.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e4bd6d8..a83030a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -28,14 +28,14 @@ build:
       - .gradle/
   before_script:
     # Install OS tools
-    - apt-get update -qq && apt-get install -y -qq unzip wget curl
+    - apt-get update -qq && apt-get install -y -qq unzip curl
     # Download Android command-line tools if not restored from cache
     - |
       if [ ! -f "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" ]; then
         echo "Downloading Android command-line tools..."
-        wget --fail --show-error -q \
+        curl --fail --silent --show-error \
              https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip \
-             -O /tmp/cmdline-tools.zip
+             -o /tmp/cmdline-tools.zip
         mkdir -p "$ANDROID_HOME/cmdline-tools"
         unzip -q /tmp/cmdline-tools.zip -d /tmp/ct
         mv /tmp/ct/cmdline-tools "$ANDROID_HOME/cmdline-tools/latest"