This commit is contained in:
rachguo
2023-07-13 12:30:24 -07:00
parent 68d514749e
commit a159512001
@@ -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)