From b885049fedf8334927859ba7cb2878a9d1218bb2 Mon Sep 17 00:00:00 2001 From: rachguo Date: Wed, 12 Jul 2023 17:45:36 -0700 Subject: [PATCH] update test package.swift --- .../github/mac-ios-swift-packaging-pipeline.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tools/ci_build/github/mac-ios-swift-packaging-pipeline.yml b/tools/ci_build/github/mac-ios-swift-packaging-pipeline.yml index 484d450..4a55d70 100644 --- a/tools/ci_build/github/mac-ios-swift-packaging-pipeline.yml +++ b/tools/ci_build/github/mac-ios-swift-packaging-pipeline.yml @@ -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