This commit is contained in:
rachguo
2023-07-13 13:57:49 -07:00
parent 2bdfc0d75c
commit ca3de4d9f1
@@ -165,6 +165,10 @@ jobs:
workingDirectory: '$(Build.ArtifactStagingDirectory)/ios_packaging_artifacts_full'
displayName: "List staged artifacts"
# 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
ARTIFACTS_LIST=$(ls)
@@ -172,9 +176,6 @@ jobs:
shasum -a 256 "$(Build.ArtifactStagingDirectory)/ios_packaging_artifacts_full/${POD_ARCHIVE}"
# 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
cp "$(Build.ArtifactStagingDirectory)/ios_packaging_artifacts_full/${POD_ARCHIVE}" swift/
export ORT_IOS_POD_LOCAL_PATH="swift/${POD_ARCHIVE}"
xcodebuild test -scheme onnxruntime -destination 'platform=iOS Simulator,name=iPhone 14'