From a1595120013430967bbcec987072314e3e4a61f8 Mon Sep 17 00:00:00 2001 From: rachguo Date: Thu, 13 Jul 2023 12:30:24 -0700 Subject: [PATCH] fix --- tools/ci_build/github/mac-ios-swift-packaging-pipeline.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 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 3689a10..3fae642 100644 --- a/tools/ci_build/github/mac-ios-swift-packaging-pipeline.yml +++ b/tools/ci_build/github/mac-ios-swift-packaging-pipeline.yml @@ -170,7 +170,7 @@ jobs: ARTIFACTS_LIST=$(ls) POD_ARCHIVE=$(echo "${ARTIFACTS_LIST}" | sed -n '3p') echo ${POD_ARCHIVE} - echo "##vso[task.setvariable variable=podArchiveName]${POD_ARCHIVE}" + echo "##vso[task.setvariable variable=${{ variables.podArchiveName }}]${POD_ARCHIVE}" shasum -a 256 "${POD_ARCHIVE}" workingDirectory: '$(Build.ArtifactStagingDirectory)/ios_packaging_artifacts_full' displayName: "Print ORT iOS Pod checksum" @@ -181,8 +181,8 @@ jobs: # once that's done cleanup the copy of the pod zip file - script: | set -e -x - cp "$(Build.ArtifactStagingDirectory)/ios_packaging_artifacts_full/$(POD_ARCHIVE_NAME)" swift/ - export ORT_IOS_POD_LOCAL_PATH="swift/$(POD_ARCHIVE_NAME)" + cp "$(Build.ArtifactStagingDirectory)/ios_packaging_artifacts_full/${{ variables.podArchiveName }}" swift/ + export ORT_IOS_POD_LOCAL_PATH="swift/${{ variables.podArchiveName }}" xcodebuild test -scheme onnxruntime -destination 'platform=iOS Simulator,name=iPhone 14' rm swift/pod-archive-onnxruntime-c-*.zip workingDirectory: $(Build.SourcesDirectory)