ai-chat-android-auto / commit
CI: use curl instead of wget for SDK download
.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"