onnxruntime/tools/ci_build/github/azure-pipelines/nuget/templates/test_macos.yml
Edward Chen 1261d0b8ba
Fix some build issues on MacOS with Xcode 14.3. (#15878)
- Fix flatbuffers flatc warning, unused-but-set-variable.
- Address `-Wshorten-64-to-32` warnings (fix in our code, allow in dependencies' code).
- Update CI builds to use Xcode 14.3.
- Update minimum iOS version to 12.0.
- Update Mac hosted agents to MacOS 13 where possible.
2023-06-07 12:07:11 -07:00

58 lines
1.8 KiB
YAML

parameters:
IsMacOS : 'true'
ArtifactSuffix: ''
stages:
- stage: NuGet_Test_MacOS
dependsOn:
- NuGet_Packaging_${{ parameters.ArtifactSuffix }}
condition: succeeded()
jobs:
- job:
workspace:
clean: all
pool:
vmImage: 'macOS-13'
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: get-nuget-package-version-as-variable.yml
parameters:
packageFolder: '$(Build.BinariesDirectory)/nuget-artifact'
- script: |
echo "TODO: Enable this test once fix this nuget test issue"
# $(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: ../../templates/component-governance-component-detection-steps.yml
parameters :
condition : 'always'
- template: ../../templates/clean-agent-build-directory-step.yml