fix
This commit is contained in:
@@ -19,7 +19,6 @@ jobs:
|
|||||||
|
|
||||||
variables:
|
variables:
|
||||||
xcodeVersion: "14.3"
|
xcodeVersion: "14.3"
|
||||||
podArchive: ""
|
|
||||||
|
|
||||||
timeoutInMinutes: 300
|
timeoutInMinutes: 300
|
||||||
|
|
||||||
@@ -169,8 +168,8 @@ jobs:
|
|||||||
set -e -x
|
set -e -x
|
||||||
ARTIFACTS_LIST=$(ls)
|
ARTIFACTS_LIST=$(ls)
|
||||||
POD_ARCHIVE=$(echo "${ARTIFACTS_LIST}" | sed -n '5p')
|
POD_ARCHIVE=$(echo "${ARTIFACTS_LIST}" | sed -n '5p')
|
||||||
echo "##vso[task.setvariable variable=podArchive]${POD_ARCHIVE}"
|
echo "##vso[task.setvariable variable=${POD_ARCHIVE_NAME}]${POD_ARCHIVE}"
|
||||||
shasum -a 256 "${{ variables.podArchive }}"
|
shasum -a 256 "${POD_ARCHIVE_NAME}"
|
||||||
workingDirectory: '$(Build.ArtifactStagingDirectory)/ios_packaging_artifacts'
|
workingDirectory: '$(Build.ArtifactStagingDirectory)/ios_packaging_artifacts'
|
||||||
displayName: "Print ORT iOS Pod checksum"
|
displayName: "Print ORT iOS Pod checksum"
|
||||||
|
|
||||||
@@ -180,8 +179,8 @@ jobs:
|
|||||||
# 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)/ios_packaging_artifacts/${{ variables.podArchive }}" swift/
|
cp "$(Build.ArtifactStagingDirectory)/ios_packaging_artifacts/${POD_ARCHIVE_NAME}" swift/
|
||||||
export ORT_IOS_POD_LOCAL_PATH="swift/${{ variables.podArchive }}"
|
export ORT_IOS_POD_LOCAL_PATH="swift/${POD_ARCHIVE_NAME}"
|
||||||
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
|
||||||
workingDirectory: $(Build.SourcesDirectory)
|
workingDirectory: $(Build.SourcesDirectory)
|
||||||
|
|||||||
Reference in New Issue
Block a user