Skip to content

Commit af84537

Browse files
authored
Merge pull request #69 from JDAI-CV/ort_ci
add onnx runtime ci
2 parents ad11c32 + c2dbf71 commit af84537

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

ci/onnxruntime_test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
trigger:
2+
branches:
3+
include:
4+
- master
5+
tags:
6+
include:
7+
- v*
8+
paths:
9+
include:
10+
- '*'
11+
exclude:
12+
- README.md
13+
- docs/*
14+
pr:
15+
branches:
16+
include:
17+
- '*'
18+
paths:
19+
include:
20+
- '*'
21+
exclude:
22+
- README.md
23+
- docs/*
24+
25+
pool:
26+
vmImage: 'macOS-10.14'
27+
steps:
28+
- checkout: self
29+
submodules: true
30+
- script: git clone --recursive --branch fix_android_build https://github.com/daquexian/onnxruntime $(Agent.HomeDirectory)/onnxruntime
31+
displayName: Clone ONNX Runtime
32+
- script: rm -rf $(Agent.HomeDirectory)/onnxruntime/cmake/external/DNNLibrary && cp -r $(Build.SourcesDirectory) $(Agent.HomeDirectory)/onnxruntime/cmake/external/DNNLibrary
33+
displayName: Copy latest DNNLibrary
34+
- script: pip install cmake==3.13.2.post1 && alias cmake=/usr/local/bin/cmake && cmake --version && brew install coreutils
35+
displayName: Install cmake 3.13 and coreutils
36+
- script: echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'ndk-bundle'
37+
displayName: Install Android NDK
38+
- 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
39+
workingDirectory: $(Agent.HomeDirectory)/onnxruntime
40+
displayName: Build and Test on Android Emulator

0 commit comments

Comments
 (0)