From a2f312d30ef06b2382b9dd55a1f74e8f8e3ba475 Mon Sep 17 00:00:00 2001 From: rachguo Date: Thu, 13 Jul 2023 14:20:43 -0700 Subject: [PATCH] update --- .../ci_build/github/mac-ios-swift-packaging-pipeline.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 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 85485be..720d64c 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: shasum -a 256 "$(Build.ArtifactStagingDirectory)/ios_packaging_artifacts_full/${POD_ARCHIVE}" - ls -R "$(Build.SourcesDirectory)" - cp "$(Build.ArtifactStagingDirectory)/ios_packaging_artifacts_full/${POD_ARCHIVE}" "$(Build.SourcesDirectory)/swift/" - export ORT_IOS_POD_LOCAL_PATH="$(Build.SourcesDirectory)/swift/${POD_ARCHIVE}" - cd "$(Build.SourcesDirectory)" + + 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' rm swift/pod-archive-onnxruntime-c-*.zip + workingDirectory: "$(Build.SourcesDirectory)" displayName: "Test Package.swift usage" # - publish: "$(Build.ArtifactStagingDirectory)"