mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-24 19:43:35 +00:00
56 lines
1.7 KiB
YAML
56 lines
1.7 KiB
YAML
#Test nuget package on macOS
|
|
parameters:
|
|
IsMacOS : 'true'
|
|
ArtifactSuffix: ''
|
|
jobs:
|
|
- job: NuGet_Test_MacOS
|
|
workspace:
|
|
clean: all
|
|
pool:
|
|
vmImage: 'macOS-10.15'
|
|
dependsOn:
|
|
- NuGet_Packaging_${{ parameters.ArtifactSuffix }}
|
|
condition: succeeded()
|
|
variables:
|
|
- name: OnnxRuntimeBuildDirectory
|
|
value: '$(Build.BinariesDirectory)'
|
|
steps:
|
|
- task: DownloadPipelineArtifact@0
|
|
displayName: 'Download Pipeline Artifact - Signed NuGet'
|
|
inputs:
|
|
artifactName: drop-signed-nuget-${{ parameters.ArtifactSuffix }}
|
|
targetPath: '$(Build.BinariesDirectory)/nuget-artifact'
|
|
|
|
- task: DownloadPipelineArtifact@0
|
|
displayName: 'Download OsX CustomOp test data'
|
|
inputs:
|
|
artifactName: 'onnxruntime-osx'
|
|
targetPath: '$(Build.BinariesDirectory)/testdata'
|
|
|
|
- template: ../nuget/templates/get-nuget-package-version-as-variable.yml
|
|
parameters:
|
|
packageFolder: '$(Build.BinariesDirectory)/nuget-artifact'
|
|
|
|
- script: |
|
|
mv $(Build.BinariesDirectory)/testdata/x86_64/* $(Build.BinariesDirectory)/testdata
|
|
$(Build.SourcesDirectory)/csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/runtest.sh \
|
|
$(Build.BinariesDirectory)/nuget-artifact \
|
|
$(NuGetPackageVersionNumber) \
|
|
${{ parameters.IsMacOS }}
|
|
|
|
if [ $? -ne 0 ]; then
|
|
echo "Failed to run test"
|
|
exit 1
|
|
fi
|
|
displayName: 'Run Test'
|
|
env:
|
|
OnnxRuntimeBuildDirectory: $(Build.BinariesDirectory)
|
|
DisableContribOps: $(DisableContribOps)
|
|
DisableMlOps: $(DisableMlOps)
|
|
IsReleaseBuild: $(IsReleaseBuild)
|
|
|
|
- template: component-governance-component-detection-steps.yml
|
|
parameters :
|
|
condition : 'always'
|
|
|
|
- template: clean-agent-build-directory-step.yml
|