update test package.swift
This commit is contained in:
@@ -176,13 +176,14 @@ jobs:
|
||||
# copy the pod archive to a path relative to Package.swift and set the env var required by Package.swift to use that.
|
||||
# xcodebuild will implicitly use Package.swift and build/run the .testTarget (tests in swift/onnxTests).
|
||||
# once that's done cleanup the copy of the pod zip file
|
||||
# - script: |
|
||||
# set -e -x
|
||||
# cp "$(Build.ArtifactStagingDirectory)/pod-archive-onnxruntime-c-${ORT_POD_VERSION}.zip" swift/
|
||||
# export ORT_IOS_POD_LOCAL_PATH="swift/pod-archive-onnxruntime-c-${ORT_POD_VERSION}.zip"
|
||||
# xcodebuild test -scheme onnxruntime -destination 'platform=iOS Simulator,name=iPhone 14'
|
||||
# rm swift/pod-archive-onnxruntime-c-*.zip
|
||||
# displayName: "Test Package.swift usage"
|
||||
- script: |
|
||||
set -e -x
|
||||
cp "$(Build.ArtifactStagingDirectory)/ios_packaging_artifacts/${POD_ARCHIVE}" swift/
|
||||
export ORT_IOS_POD_LOCAL_PATH="swift/${POD_ARCHIVE}"
|
||||
xcodebuild test -scheme onnxruntime -destination 'platform=iOS Simulator,name=iPhone 14'
|
||||
rm swift/pod-archive-onnxruntime-c-*.zip
|
||||
workingDirectory: $(Build.SourcesDirectory)
|
||||
displayName: "Test Package.swift usage"
|
||||
|
||||
# - publish: "$(Build.ArtifactStagingDirectory)"
|
||||
# artifact: ios_packaging_artifacts
|
||||
|
||||
Reference in New Issue
Block a user