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.
|
# 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
|
||||||
# - script: |
|
- script: |
|
||||||
# set -e -x
|
set -e -x
|
||||||
# cp "$(Build.ArtifactStagingDirectory)/pod-archive-onnxruntime-c-${ORT_POD_VERSION}.zip" swift/
|
cp "$(Build.ArtifactStagingDirectory)/ios_packaging_artifacts/${POD_ARCHIVE}" swift/
|
||||||
# export ORT_IOS_POD_LOCAL_PATH="swift/pod-archive-onnxruntime-c-${ORT_POD_VERSION}.zip"
|
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
|
||||||
# displayName: "Test Package.swift usage"
|
workingDirectory: $(Build.SourcesDirectory)
|
||||||
|
displayName: "Test Package.swift usage"
|
||||||
|
|
||||||
# - publish: "$(Build.ArtifactStagingDirectory)"
|
# - publish: "$(Build.ArtifactStagingDirectory)"
|
||||||
# artifact: ios_packaging_artifacts
|
# artifact: ios_packaging_artifacts
|
||||||
|
|||||||
Reference in New Issue
Block a user