Skip to content

Commit

Permalink
TC: Install NDK through the sdkmanager
Browse files Browse the repository at this point in the history
  • Loading branch information
badboy committed Aug 10, 2021
1 parent 5d744eb commit ec35c83
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions taskcluster/docker/linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -141,26 +141,11 @@ RUN curl -sfSL --retry 5 --retry-delay 10 https://dl.google.com/android/reposito
"platforms;android-${ANDROID_PLATFORM_VERSION}" \
"build-tools;${ANDROID_BUILD_TOOLS}" \
"extras;android;m2repository" \
"extras;google;m2repository"
"extras;google;m2repository" \
"ndk;21.3.6528147"

RUN chown -R worker:worker /builds/worker/android-sdk

# Android NDK

ENV ANDROID_NDK_VERSION "r21"

# $ANDROID_NDK_ROOT is the preferred name, but the android gradle plugin uses $ANDROID_NDK_HOME.
ENV ANDROID_NDK_ROOT /builds/worker/android-ndk
ENV ANDROID_NDK_HOME /builds/worker/android-ndk

RUN curl -sfSL --retry 5 --retry-delay 10 https://dl.google.com/android/repository/android-ndk-${ANDROID_NDK_VERSION}-linux-x86_64.zip > ndk.zip \
&& unzip -q ndk.zip -d /builds/worker \
&& rm ndk.zip \
&& mv /builds/worker/android-ndk-${ANDROID_NDK_VERSION} ${ANDROID_NDK_ROOT}

ENV ANDROID_NDK_TOOLCHAIN_DIR /builds/worker/.android-ndk-r21-toolchain
ENV ANDROID_NDK_API_VERSION 21

# sccache
RUN \
curl -sfSL --retry 5 --retry-delay 10 \
Expand Down

0 comments on commit ec35c83

Please sign in to comment.