diff options
author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-10-16 11:06:33 +0900 |
---|---|---|
committer | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-10-16 13:01:02 +0900 |
commit | d565a3606ebe6b32db507441cab5242bfd7977a5 (patch) | |
tree | f5688ddff77a2c643cc663240f4db9daf191108a /ci | |
parent | 0121c5c0190b6406a215382df538743c73fa60ef (diff) | |
download | rust-libc-d565a3606ebe6b32db507441cab5242bfd7977a5.tar.gz |
Use the latest Android SDK manager
Diffstat (limited to 'ci')
-rw-r--r-- | ci/android-install-ndk.sh | 2 | ||||
-rw-r--r-- | ci/android-install-sdk.sh | 14 | ||||
-rw-r--r-- | ci/android-sysimage.sh | 2 | ||||
-rw-r--r-- | ci/docker/aarch64-linux-android/Dockerfile | 5 | ||||
-rw-r--r-- | ci/docker/arm-linux-androideabi/Dockerfile | 5 | ||||
-rw-r--r-- | ci/docker/i686-linux-android/Dockerfile | 4 |
6 files changed, 17 insertions, 15 deletions
diff --git a/ci/android-install-ndk.sh b/ci/android-install-ndk.sh index e37a5542c3..7bc655ef69 100644 --- a/ci/android-install-ndk.sh +++ b/ci/android-install-ndk.sh @@ -3,7 +3,7 @@ set -ex NDK=android-ndk-r21d -wget --tries=20 https://dl.google.com/android/repository/${NDK}-linux-x86_64.zip +wget --tries=20 -q https://dl.google.com/android/repository/${NDK}-linux-x86_64.zip unzip -q ${NDK}-linux-x86_64.zip case "$1" in diff --git a/ci/android-install-sdk.sh b/ci/android-install-sdk.sh index 8858de16d7..6f6aeb28e8 100644 --- a/ci/android-install-sdk.sh +++ b/ci/android-install-sdk.sh @@ -9,10 +9,10 @@ set -ex # located in https://github.com/appunite/docker by just wrapping it in a script # which apparently magically accepts the licenses. -SDK=4333796 -mkdir sdk -wget --tries=20 https://dl.google.com/android/repository/sdk-tools-linux-${SDK}.zip -unzip -q -d sdk sdk-tools-linux-${SDK}.zip +SDK=6609375 +mkdir -p sdk/cmdline-tools +wget -q --tries=20 https://dl.google.com/android/repository/commandlinetools-linux-${SDK}_latest.zip +unzip -q -d sdk/cmdline-tools commandlinetools-linux-${SDK}_latest.zip case "$1" in arm | armv7) @@ -51,14 +51,14 @@ echo '#Fri Nov 03 10:11:27 CET 2017 count=0' >> /root/.android/repositories.cfg # # | grep -v = || true removes the progress bar output from the sdkmanager # which produces an insane amount of output. -yes | ./sdk/tools/bin/sdkmanager --licenses --no_https | grep -v = || true -yes | ./sdk/tools/bin/sdkmanager --no_https \ +yes | ./sdk/cmdline-tools/tools/bin/sdkmanager --licenses --no_https | grep -v = || true +yes | ./sdk/cmdline-tools/tools/bin/sdkmanager --no_https \ "emulator" \ "platform-tools" \ "platforms;android-${api}" \ "${image}" | grep -v = || true echo "no" | - ./sdk/tools/bin/avdmanager create avd \ + ./sdk/cmdline-tools/tools/bin/avdmanager create avd \ --name "${1}" \ --package "${image}" | grep -v = || true diff --git a/ci/android-sysimage.sh b/ci/android-sysimage.sh index d6eb32ed68..b49712035c 100644 --- a/ci/android-sysimage.sh +++ b/ci/android-sysimage.sh @@ -14,7 +14,7 @@ main() { apt-get install --no-install-recommends e2tools pushd "${td}" - wget --tries=5 "${URL}/${name}" + wget -q --tries=5 "${URL}/${name}" unzip -q "${name}" local system diff --git a/ci/docker/aarch64-linux-android/Dockerfile b/ci/docker/aarch64-linux-android/Dockerfile index 71a1e6bdec..2c816c24f2 100644 --- a/ci/docker/aarch64-linux-android/Dockerfile +++ b/ci/docker/aarch64-linux-android/Dockerfile @@ -19,13 +19,14 @@ WORKDIR /android/ COPY android* /android/ ENV ANDROID_ARCH=aarch64 -ENV PATH=$PATH:/android/ndk-$ANDROID_ARCH/bin:/android/sdk/tools:/android/sdk/platform-tools +ENV PATH=$PATH:/android/ndk-$ANDROID_ARCH/bin:/android/sdk/cmdline-tools/tools:/android/sdk/platform-tools RUN sh /android/android-install-ndk.sh $ANDROID_ARCH RUN sh /android/android-install-sdk.sh $ANDROID_ARCH RUN mv /root/.android /tmp RUN chmod 777 -R /tmp/.android -RUN chmod 755 /android/sdk/tools/* /android/sdk/emulator/qemu/linux-x86_64/* +RUN chmod 755 /android/sdk/cmdline-tools/tools/* /android/sdk/emulator/qemu/linux-x86_64/* +RUN ls -a /android/sdk/platform-tools ENV PATH=$PATH:/rust/bin \ CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=aarch64-linux-android-gcc \ diff --git a/ci/docker/arm-linux-androideabi/Dockerfile b/ci/docker/arm-linux-androideabi/Dockerfile index 3b200402c5..25f76d2c8a 100644 --- a/ci/docker/arm-linux-androideabi/Dockerfile +++ b/ci/docker/arm-linux-androideabi/Dockerfile @@ -19,13 +19,14 @@ WORKDIR /android/ COPY android* /android/ ENV ANDROID_ARCH=arm -ENV PATH=$PATH:/android/ndk-$ANDROID_ARCH/bin:/android/sdk/tools:/android/sdk/platform-tools +ENV PATH=$PATH:/android/ndk-$ANDROID_ARCH/bin:/android/sdk/cmdline-tools/tools:/android/sdk/platform-tools RUN sh /android/android-install-ndk.sh $ANDROID_ARCH RUN sh /android/android-install-sdk.sh $ANDROID_ARCH RUN mv /root/.android /tmp RUN chmod 777 -R /tmp/.android -RUN chmod 755 /android/sdk/tools/* /android/sdk/emulator/qemu/linux-x86_64/* +RUN chmod 755 /android/sdk/cmdline-tools/tools/* /android/sdk/emulator/qemu/linux-x86_64/* +RUN ls -a /android/sdk/platform-tools ENV PATH=$PATH:/rust/bin \ CARGO_TARGET_ARM_LINUX_ANDROIDEABI_LINKER=arm-linux-androideabi-gcc \ diff --git a/ci/docker/i686-linux-android/Dockerfile b/ci/docker/i686-linux-android/Dockerfile index 9c050ef955..c914592104 100644 --- a/ci/docker/i686-linux-android/Dockerfile +++ b/ci/docker/i686-linux-android/Dockerfile @@ -20,13 +20,13 @@ WORKDIR /android/ COPY android* /android/ ENV ANDROID_ARCH=i686 -ENV PATH=$PATH:/android/ndk-$ANDROID_ARCH/bin:/android/sdk/tools:/android/sdk/platform-tools +ENV PATH=$PATH:/android/ndk-$ANDROID_ARCH/bin:/android/sdk/cmdline-tools/tools:/android/sdk/cmdline-tools/platform-tools RUN sh /android/android-install-ndk.sh $ANDROID_ARCH RUN sh /android/android-install-sdk.sh $ANDROID_ARCH RUN mv /root/.android /tmp RUN chmod 777 -R /tmp/.android -RUN chmod 755 /android/sdk/tools/* /android/sdk/emulator/qemu/linux-x86_64/* +RUN chmod 755 /android/sdk/cmdline-tools/tools/* /android/sdk/emulator/qemu/linux-x86_64/* ENV PATH=$PATH:/rust/bin \ CARGO_TARGET_I686_LINUX_ANDROID_LINKER=i686-linux-android-gcc \ |