Update to latest 1.16.0 ORT release (#7)

* update to latest 1.16.0 ort release

* minor update

* update to ext-c 0.9.0 release pod

* update

* update comments

---------

Co-authored-by: rachguo <rachguo@rachguos-Mini.attlocal.net>
Co-authored-by: rachguo <rachguo@rachguos-Mac-mini.local>
This commit is contained in:
Rachel Guo
2023-09-22 16:52:05 -07:00
committed by GitHub
parent c76787fd3e
commit 4d2b60a528
3 changed files with 13 additions and 42 deletions
@@ -32,8 +32,7 @@
displayName: "List sparse checkout repo contents"
# Download artifacts from a specific pipeline
# For now, it consumes rel-1.15.0 version ORT iOS Pod which matches the current source code
# TODO: Update branch to latest main of ORT github repo when syncing changes to ORT SPM repo here.
# It consumes a latest dev version ORT iOS Pod which should match with the source code
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'specific'
@@ -14,37 +14,12 @@
- template: templates/use-xcode-version.yml
parameters:
xcodeVersion: ${{ variables.xcodeVersion }}
# Note: Currently it requires a dev version extensions c pod for testing
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'specific'
project: 'Lotus'
definition: 1206 #'definitionid' is obtained from `System.DefinitionId` of extensions CI: extensions.ios_packaging
buildVersionToDownload: 'latest'
branchName: 'main'
targetPath: '$(Build.ArtifactStagingDirectory)'
- script: |
set -e -x
ls
workingDirectory: "$(Build.ArtifactStagingDirectory)/ios_packaging_artifacts"
displayName: "List staged artifacts for ORT Ext C Pod"
# Note: Running xcodebuild test on `onnxruntime-Package` scheme will perform swift tests for both OnnxRuntimeBindings
# and OnnxRuntimeExtensions targets.
- script: |
set -e -x
cd "$(Build.ArtifactStagingDirectory)/ios_packaging_artifacts"
POD_ARCHIVE=$(find . -name "pod-archive-onnxruntime-extensions-c-*.zip")
cd "$(Build.SourcesDirectory)"
cp "$(Build.ArtifactStagingDirectory)/ios_packaging_artifacts/${POD_ARCHIVE}" swift/
export ORT_EXTENSIONS_IOS_POD_LOCAL_PATH="swift/${POD_ARCHIVE}"
xcodebuild test -scheme onnxruntime-Package -destination 'platform=iOS Simulator,name=iPhone 14'
rm swift/pod-archive-onnxruntime-extensions-c-*.zip
workingDirectory: "$(Build.SourcesDirectory)"
displayName: "Test Package.swift usage"