mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Fix the broken Android NNAPI CI (#4403)
* Change NNAPI CI to run on new NNAPI EP * update android ci to mac 10.15 and remove in install cmake * update the android ci to targe android api level 29 * remove unnecessary ndk install git submodule call
This commit is contained in:
parent
ef602835b0
commit
0bef9d5114
2 changed files with 7 additions and 13 deletions
|
|
@ -3,9 +3,9 @@
|
|||
|
||||
set -e
|
||||
|
||||
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-28;google_apis;x86_64'
|
||||
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-29;google_apis;x86_64'
|
||||
|
||||
echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n android_emulator -k 'system-images;android-28;google_apis;x86_64' --force
|
||||
echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n android_emulator -k 'system-images;android-29;google_apis;x86_64' --force
|
||||
|
||||
echo "Starting emulator"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,15 +1,9 @@
|
|||
jobs:
|
||||
- job: Android_CI
|
||||
pool:
|
||||
vmImage: 'macOS-10.14'
|
||||
pool:
|
||||
vmImage: 'macOS-10.15'
|
||||
steps:
|
||||
# cmake 3.15 breaks Android NDK https://gitlab.kitware.com/cmake/cmake/issues/19515. pip install cmake==3.13.2 installs 3.12.2
|
||||
- script: pip install cmake==3.13.2.post1 && alias cmake=/usr/local/bin/cmake && cmake --version && brew install coreutils
|
||||
displayName: Install cmake 3.14 and coreutils
|
||||
- script: 'git submodule update --init --recursive --progress'
|
||||
displayName: Clone submodules
|
||||
- script: echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'ndk-bundle'
|
||||
displayName: Install Android NDK
|
||||
- script: tools/ci_build/build.py --android --build_dir build --android_sdk_path $ANDROID_HOME --android_ndk_path $ANDROID_HOME/ndk-bundle --android_abi=x86_64 --skip_submodule_sync --parallel --use_dnnlibrary
|
||||
- script: brew install coreutils
|
||||
displayName: Install coreutils
|
||||
- script: tools/ci_build/build.py --android --build_dir build --android_sdk_path $ANDROID_HOME --android_ndk_path $ANDROID_HOME/ndk-bundle --android_abi=x86_64 --android_api=29 --skip_submodule_sync --parallel --use_nnapi
|
||||
displayName: Build and Test on Android Emulator
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue