This commit is contained in:
rachguo
2023-07-13 14:04:43 -07:00
parent 1d3185cceb
commit 4b369e9ee9
@@ -165,7 +165,6 @@ jobs:
workingDirectory: '$(Build.ArtifactStagingDirectory)/ios_packaging_artifacts_full' workingDirectory: '$(Build.ArtifactStagingDirectory)/ios_packaging_artifacts_full'
displayName: "List staged artifacts" 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. # 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). # 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 # once that's done cleanup the copy of the pod zip file
@@ -181,7 +180,6 @@ jobs:
export ORT_IOS_POD_LOCAL_PATH="swift/${POD_ARCHIVE}" export ORT_IOS_POD_LOCAL_PATH="swift/${POD_ARCHIVE}"
xcodebuild test -scheme onnxruntime -destination 'platform=iOS Simulator,name=iPhone 14' xcodebuild test -scheme onnxruntime -destination 'platform=iOS Simulator,name=iPhone 14'
rm swift/pod-archive-onnxruntime-c-*.zip rm swift/pod-archive-onnxruntime-c-*.zip
workingDirectory: $(Build.SourcesDirectory)
displayName: "Test Package.swift usage" displayName: "Test Package.swift usage"
# - publish: "$(Build.ArtifactStagingDirectory)" # - publish: "$(Build.ArtifactStagingDirectory)"