Skip to content

Commit

Permalink
Merge pull request #69 from JDAI-CV/ort_ci
Browse files Browse the repository at this point in the history
add onnx runtime ci
  • Loading branch information
daquexian authored Jan 28, 2020
2 parents ad11c32 + c2dbf71 commit af84537
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions ci/onnxruntime_test.yml
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

0 comments on commit af84537

Please sign in to comment.