diff options
| author | Chris Wailes <chriswailes@google.com> | 2022-09-26 15:50:56 -0700 |
|---|---|---|
| committer | Chris Wailes <chriswailes@google.com> | 2022-12-14 11:33:08 -0800 |
| commit | 0fb426ace4ed07bc023863ebd8103ac49fba1283 (patch) | |
| tree | 897e47f5edbc59bcaa56896fe1cb7fa01a839e98 /src/ci/docker/scripts | |
| parent | ba64ba8b0dfd57f7d6d7399d0df7ded37d2af18d (diff) | |
| download | rust-0fb426ace4ed07bc023863ebd8103ac49fba1283.tar.gz rust-0fb426ace4ed07bc023863ebd8103ac49fba1283.zip | |
Update CI to use Android NDK r25b
This commit updates the CI definitions to use the most recent Android LTS NDK release: r25b. Changes since the last NDK used by Rust negate the need to generate "standalone toolchains" and newer NDKs can be used in-place. See https://developer.android.com/ndk/guides/other_build_systems#overview
Diffstat (limited to 'src/ci/docker/scripts')
| -rw-r--r-- | src/ci/docker/scripts/android-ndk.sh | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/src/ci/docker/scripts/android-ndk.sh b/src/ci/docker/scripts/android-ndk.sh index ba70c62ea30..4dd6ac274fd 100644 --- a/src/ci/docker/scripts/android-ndk.sh +++ b/src/ci/docker/scripts/android-ndk.sh @@ -4,28 +4,10 @@ set -ex URL=https://dl.google.com/android/repository download_ndk() { - mkdir -p /android/ndk - cd /android/ndk + mkdir /android/ + cd /android curl -fO $URL/$1 unzip -q $1 rm $1 mv android-ndk-* ndk } - -make_standalone_toolchain() { - # See https://developer.android.com/ndk/guides/standalone_toolchain.htm - python3 /android/ndk/ndk/build/tools/make_standalone_toolchain.py \ - --install-dir /android/ndk/$1-$2 \ - --arch $1 \ - --api $2 -} - -remove_ndk() { - rm -rf /android/ndk/ndk -} - -download_and_make_toolchain() { - download_ndk $1 && \ - make_standalone_toolchain $2 $3 && \ - remove_ndk -} |
