add separate ci for latest main local testing
This commit is contained in:
+16
-33
@@ -1,6 +1,3 @@
|
|||||||
stages:
|
|
||||||
- stage: SPM_IOS_Local_Pod_Testing
|
|
||||||
dependsOn: []
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: j
|
- job: j
|
||||||
displayName: "Test with latest local ORT native pod"
|
displayName: "Test with latest local ORT native pod"
|
||||||
@@ -10,7 +7,7 @@ stages:
|
|||||||
|
|
||||||
variables:
|
variables:
|
||||||
xcodeVersion: "14.3"
|
xcodeVersion: "14.3"
|
||||||
artifactsName: "ios_packaging_artifacts" #TODO: Add `_full` suffix when syncing to latest main
|
artifactsName: "ios_packaging_artifacts_full"
|
||||||
|
|
||||||
timeoutInMinutes: 60
|
timeoutInMinutes: 60
|
||||||
|
|
||||||
@@ -19,6 +16,16 @@ stages:
|
|||||||
parameters:
|
parameters:
|
||||||
xcodeVersion: ${{ variables.xcodeVersion }}
|
xcodeVersion: ${{ variables.xcodeVersion }}
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
mkdir tmp
|
||||||
|
cd tmp
|
||||||
|
git clone -n --depth=1 --filter=tree:0 https://github.com/microsoft/onnxruntime.git
|
||||||
|
cd onnxruntime
|
||||||
|
git sparse-checkout set --no-cone objectivec swift Package.swift
|
||||||
|
git checkout
|
||||||
|
workingDirectory: "$(Build.SourcesDirectory)"
|
||||||
|
displayName: "Sparse checkout objectivec/ swift/ folders from latest ORT main repository"
|
||||||
|
|
||||||
# Download artifacts from a specific pipeline
|
# Download artifacts from a specific pipeline
|
||||||
# For now, it consumes rel-1.15.0 version ORT iOS Pod which matches the current source code
|
# 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.
|
# TODO: Update branch to latest main of ORT github repo when syncing changes to ORT SPM repo here.
|
||||||
@@ -28,7 +35,7 @@ stages:
|
|||||||
project: 'Lotus'
|
project: 'Lotus'
|
||||||
definition: 995 #'definitionid' is obtained from `System.DefinitionId` of ORT CI: onnxruntime-ios-packaging-pipeline
|
definition: 995 #'definitionid' is obtained from `System.DefinitionId` of ORT CI: onnxruntime-ios-packaging-pipeline
|
||||||
buildVersionToDownload: 'latest'
|
buildVersionToDownload: 'latest'
|
||||||
branchName: 'rel-1.15.0'
|
branchName: 'main'
|
||||||
targetPath: '$(Build.ArtifactStagingDirectory)'
|
targetPath: '$(Build.ArtifactStagingDirectory)'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
@@ -47,42 +54,18 @@ stages:
|
|||||||
|
|
||||||
shasum -a 256 "$(Build.ArtifactStagingDirectory)/$(artifactsName)/${POD_ARCHIVE}"
|
shasum -a 256 "$(Build.ArtifactStagingDirectory)/$(artifactsName)/${POD_ARCHIVE}"
|
||||||
|
|
||||||
cd "$(Build.SourcesDirectory)"
|
cd "$(Build.SourcesDirectory)"/tmp
|
||||||
cp "$(Build.ArtifactStagingDirectory)/$(artifactsName)/${POD_ARCHIVE}" swift/
|
cp "$(Build.ArtifactStagingDirectory)/$(artifactsName)/${POD_ARCHIVE}" swift/
|
||||||
export ORT_IOS_POD_LOCAL_PATH="swift/${POD_ARCHIVE}"
|
export ORT_IOS_POD_LOCAL_PATH="swift/${POD_ARCHIVE}"
|
||||||
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)"/tmp
|
||||||
displayName: "Print ORT iOS Pod checksum and Test Package.swift usage"
|
displayName: "Print ORT iOS Pod checksum and Test Package.swift usage"
|
||||||
|
|
||||||
- template: templates/component-governance-component-detection-steps.yml
|
|
||||||
parameters :
|
|
||||||
condition : 'succeeded'
|
|
||||||
|
|
||||||
- stage: SPM_IOS_Release_Pod_Testing
|
|
||||||
dependsOn: []
|
|
||||||
jobs:
|
|
||||||
- job: j
|
|
||||||
displayName: "Test with released ORT native pod"
|
|
||||||
|
|
||||||
pool:
|
|
||||||
vmImage: "macOS-13"
|
|
||||||
|
|
||||||
variables:
|
|
||||||
xcodeVersion: "14.3"
|
|
||||||
|
|
||||||
timeoutInMinutes: 60
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- template: templates/use-xcode-version.yml
|
|
||||||
parameters:
|
|
||||||
xcodeVersion: ${{ variables.xcodeVersion }}
|
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
set -e -x
|
rm -rf tmp/.
|
||||||
xcodebuild test -scheme onnxruntime -destination 'platform=iOS Simulator,name=iPhone 14'
|
|
||||||
workingDirectory: "$(Build.SourcesDirectory)"
|
workingDirectory: "$(Build.SourcesDirectory)"
|
||||||
displayName: "Test Package.swift usage"
|
displayName: "Sparse checkout objectivec/ swift/ folders from latest ORT main repository"
|
||||||
|
|
||||||
- template: templates/component-governance-component-detection-steps.yml
|
- template: templates/component-governance-component-detection-steps.yml
|
||||||
parameters :
|
parameters :
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
jobs:
|
||||||
|
- job: j
|
||||||
|
displayName: "Test with released ORT native pod"
|
||||||
|
|
||||||
|
pool:
|
||||||
|
vmImage: "macOS-13"
|
||||||
|
|
||||||
|
variables:
|
||||||
|
xcodeVersion: "14.3"
|
||||||
|
|
||||||
|
timeoutInMinutes: 60
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- template: templates/use-xcode-version.yml
|
||||||
|
parameters:
|
||||||
|
xcodeVersion: ${{ variables.xcodeVersion }}
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e -x
|
||||||
|
xcodebuild test -scheme onnxruntime -destination 'platform=iOS Simulator,name=iPhone 14'
|
||||||
|
workingDirectory: "$(Build.SourcesDirectory)"
|
||||||
|
displayName: "Test Package.swift usage"
|
||||||
|
|
||||||
|
- template: templates/component-governance-component-detection-steps.yml
|
||||||
|
parameters :
|
||||||
|
condition : 'succeeded'
|
||||||
Reference in New Issue
Block a user