mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-18 21:21:17 +00:00
Add ios coreml ci, and speedup ios ci run (#7420)
This commit is contained in:
parent
d67c86265b
commit
d414039189
2 changed files with 24 additions and 5 deletions
|
|
@ -1216,12 +1216,12 @@ def run_android_tests(args, source_dir, config, cwd):
|
|||
|
||||
|
||||
def run_ios_tests(args, source_dir, config, cwd):
|
||||
cpr = run_subprocess(["xcodebuild", "test", "-project", "./onnxruntime.xcodeproj",
|
||||
cpr = run_subprocess(["xcodebuild", "test-without-building", "-project", "./onnxruntime.xcodeproj",
|
||||
"-configuration", config,
|
||||
"-scheme", "onnxruntime_test_all_xc", "-destination",
|
||||
"platform=iOS Simulator,OS=latest,name=iPhone SE (2nd generation)"], cwd=cwd)
|
||||
if cpr.returncode == 0:
|
||||
cpr = run_subprocess(["xcodebuild", "test", "-project", "./onnxruntime.xcodeproj",
|
||||
cpr = run_subprocess(["xcodebuild", "test-without-building", "-project", "./onnxruntime.xcodeproj",
|
||||
"-configuration", config,
|
||||
"-scheme", "onnxruntime_shared_lib_test_xc", "-destination",
|
||||
"platform=iOS Simulator,OS=latest,name=iPhone SE (2nd generation)"], cwd=cwd)
|
||||
|
|
|
|||
|
|
@ -5,6 +5,25 @@ jobs:
|
|||
timeoutInMinutes: 120
|
||||
steps:
|
||||
- script: |
|
||||
sdkpath=`xcrun --sdk iphonesimulator --show-sdk-path`
|
||||
python3 $(Build.SourcesDirectory)/tools/ci_build/build.py --build_dir iOS --ios --ios_sysroot $sdkpath --osx_arch x86_64 --apple_deploy_target 12.1 --use_xcode --config RelWithDebInfo --parallel
|
||||
displayName: Build onnxruntime for iOS x86_64 and run tests using simulator
|
||||
python3 $(Build.SourcesDirectory)/tools/ci_build/build.py \
|
||||
--build_dir build/iOS_cpu \
|
||||
--ios \
|
||||
--ios_sysroot iphonesimulator \
|
||||
--osx_arch x86_64 \
|
||||
--apple_deploy_target 12.1 \
|
||||
--use_xcode \
|
||||
--config RelWithDebInfo \
|
||||
--parallel
|
||||
displayName: (CPU EP) Build onnxruntime for iOS x86_64 and run tests using simulator
|
||||
- script: |
|
||||
python3 $(Build.SourcesDirectory)/tools/ci_build/build.py \
|
||||
--build_dir build/iOS_coreml \
|
||||
--use_coreml \
|
||||
--ios \
|
||||
--ios_sysroot iphonesimulator \
|
||||
--osx_arch x86_64 \
|
||||
--apple_deploy_target 12.1 \
|
||||
--use_xcode \
|
||||
--config RelWithDebInfo \
|
||||
--parallel
|
||||
displayName: (CoreML EP) Build onnxruntime for iOS x86_64 and run tests using simulator
|
||||
|
|
|
|||
Loading…
Reference in a new issue