azure: install android-ndk into the home directory to fix the Windows PATH setup
@@ -95,10 +95,10 @@ jobs:
# Android NDK
- bash: |
set -e
- (cd /tmp && curl -sSf -o android-ndk.zip https://dl.google.com/android/repository/android-ndk-$(androidNDK)-$(androidHost).zip)
- (cd /tmp && unzip android-ndk.zip)
- echo "##vso[task.setvariable variable=ANDROID_NDK;]/tmp/android-ndk-$(androidNDK)"
- echo "##vso[task.setvariable variable=PATH;]${PATH}:/tmp/android-ndk-$(androidNDK)/toolchains/llvm/prebuilt/$(androidHost)/bin"
+ (cd ${HOME} && curl -sSf -o android-ndk.zip https://dl.google.com/android/repository/android-ndk-$(androidNDK)-$(androidHost).zip)
+ (cd ${HOME} && unzip android-ndk.zip)
+ echo "##vso[task.setvariable variable=ANDROID_NDK;]${HOME}/android-ndk-$(androidNDK)"
+ echo "##vso[task.prependpath]${HOME}/android-ndk-$(androidNDK)/toolchains/llvm/prebuilt/$(androidHost)/bin"
displayName: 'Install Android NDK $(androidNDK)'
# Note: support to ignore specific rust files and directories is unstable yet: https://github.com/rust-lang/rustfmt/pull/2522
