-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from JDAI-CV/ort_ci
add onnx runtime ci
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
trigger: | ||
branches: | ||
include: | ||
- master | ||
tags: | ||
include: | ||
- v* | ||
paths: | ||
include: | ||
- '*' | ||
exclude: | ||
- README.md | ||
- docs/* | ||
pr: | ||
branches: | ||
include: | ||
- '*' | ||
paths: | ||
include: | ||
- '*' | ||
exclude: | ||
- README.md | ||
- docs/* | ||
|
||
pool: | ||
vmImage: 'macOS-10.14' | ||
steps: | ||
- checkout: self | ||
submodules: true | ||
- script: git clone --recursive --branch fix_android_build https://github.com/daquexian/onnxruntime $(Agent.HomeDirectory)/onnxruntime | ||
displayName: Clone ONNX Runtime | ||
- script: rm -rf $(Agent.HomeDirectory)/onnxruntime/cmake/external/DNNLibrary && cp -r $(Build.SourcesDirectory) $(Agent.HomeDirectory)/onnxruntime/cmake/external/DNNLibrary | ||
displayName: Copy latest DNNLibrary | ||
- script: pip install cmake==3.13.2.post1 && alias cmake=/usr/local/bin/cmake && cmake --version && brew install coreutils | ||
displayName: Install cmake 3.13 and coreutils | ||
- 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_ndk $ANDROID_HOME/ndk-bundle --android_abi=x86_64 --skip_submodule_sync --parallel --use_dnnlibrary | ||
workingDirectory: $(Agent.HomeDirectory)/onnxruntime | ||
displayName: Build and Test on Android Emulator |