mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
* Merge CPU/GPU nuget pipeline * Include TensorRT EP libraries into existing GPU nuget package pipeline * modify to use correct YAML * Modify for test * modify for test * Add depedance * Add depedance (cont.) * modify for test * Add create TensorRT nuget package * modify for test * modify for test * Merge CPU/GPU nuget pipeline * Include TensorRT EP libraries into existing GPU nuget package pipeline * modify to use correct YAML * Modify for test * modify for test * Add depedance * Add depedance (cont.) * modify for test * Add create TensorRT nuget package * modify for test * fix merge bug * code refactor * code refactor * modify for test * modify for test * modify for test * modify for test * modify for test * modify for test * cleanup * modify for test * fix bug * modify for test * refactor * fix bug and test * Modify for test * Modify for test * Modify for test * Modify for test * Prepare for PR * Prepare for PR * code refacotr from review * Remove naming 'Microsoft.ML.OnnxRuntime.TensorRT' to avoid confusion * Add linux TensorRT libraries * Remove redundant variable in YMAL * revert file * undo revert file * Modify regular expression so that it can capture the correct file * Remove newline at end of file * small fix * Revert to CUDA11.1 on Windows * Add unit tests for nuget package on Linux Co-authored-by: Changming Sun <chasun@microsoft.com>
113 lines
3.8 KiB
YAML
113 lines
3.8 KiB
YAML
parameters:
|
|
AgentPool : 'Win-CPU'
|
|
NugetPackageName : ''
|
|
ArtifactSuffix: ''
|
|
Skipx86Tests: 'false'
|
|
|
|
jobs:
|
|
- job: NuGet_Test_Win_${{ parameters.ArtifactSuffix }}
|
|
workspace:
|
|
clean: all
|
|
pool: ${{ parameters.AgentPool }}
|
|
dependsOn:
|
|
- NuGet_Packaging_${{ parameters.ArtifactSuffix }}
|
|
condition: succeeded()
|
|
variables:
|
|
- name: OnnxRuntimeBuildDirectory
|
|
value: '$(Build.BinariesDirectory)'
|
|
- name: SKIPNONPACKAGETESTS
|
|
value: 'ON'
|
|
- name: runCodesignValidationInjection
|
|
value: false
|
|
|
|
steps:
|
|
- task: UsePythonVersion@0
|
|
inputs:
|
|
versionSpec: '3.7'
|
|
addToPath: true
|
|
architecture: x64
|
|
|
|
- task: NuGetToolInstaller@0
|
|
displayName: Use Nuget 5.7.0
|
|
inputs:
|
|
versionSpec: 5.7.0
|
|
|
|
- task: BatchScript@1
|
|
displayName: 'setup env'
|
|
inputs:
|
|
filename: '$(Build.SourcesDirectory)\tools\ci_build\github\windows\setup_env_gpu.bat'
|
|
modifyEnvironment: true
|
|
workingFolder: '$(Build.BinariesDirectory)'
|
|
|
|
- task: BatchScript@1
|
|
displayName: 'Setup VS2019 env vars'
|
|
inputs:
|
|
filename: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat'
|
|
arguments: 'amd64'
|
|
modifyEnvironment: true
|
|
|
|
- task: DownloadPipelineArtifact@0
|
|
displayName: 'Download Pipeline Artifact'
|
|
inputs:
|
|
artifactName: drop-signed-nuget-${{ parameters.ArtifactSuffix }}
|
|
targetPath: '$(Build.BinariesDirectory)\nuget-artifact'
|
|
|
|
- task: DownloadPipelineArtifact@0
|
|
displayName: 'Download Pipeline Artifact - testdata'
|
|
inputs:
|
|
artifactName: 'drop-nuget'
|
|
targetPath: '$(Build.BinariesDirectory)\testdata'
|
|
|
|
- template: get-nuget-package-version-as-variable.yml
|
|
parameters:
|
|
packageFolder: '$(Build.BinariesDirectory)\nuget-artifact'
|
|
|
|
- script: |
|
|
mklink /D /J models C:\local\models
|
|
workingDirectory: '$(Build.BinariesDirectory)'
|
|
displayName: 'Create models link'
|
|
|
|
# TODO: Add .Net Core AnyCPU test task
|
|
|
|
- script: |
|
|
@echo "Running Runtest.bat"
|
|
test\Microsoft.ML.OnnxRuntime.EndToEndTests\runtest.bat $(Build.BinariesDirectory)\nuget-artifact netcoreapp2.1 x64 $(NuGetPackageVersionNumber)
|
|
workingDirectory: '$(Build.SourcesDirectory)\csharp'
|
|
displayName: 'Run End to End Test (C#) .Net Core x64'
|
|
env:
|
|
PACKAGENAME: ${{ parameters.NugetPackageName }}
|
|
|
|
- ${{ if ne(parameters['Skipx86Tests'], 'true') }}:
|
|
- script: |
|
|
@echo "Running Runtest.bat"
|
|
test\Microsoft.ML.OnnxRuntime.EndToEndTests\runtest.bat $(Build.BinariesDirectory)\nuget-artifact netcoreapp2.1 x86 $(NuGetPackageVersionNumber)
|
|
workingDirectory: '$(Build.SourcesDirectory)\csharp'
|
|
displayName: 'Run End to End Test (C#) .Net Core x86'
|
|
env:
|
|
PACKAGENAME: ${{ parameters.NugetPackageName }}
|
|
|
|
# TODO: Add .Net Framework AnyCPU test task
|
|
|
|
- script: |
|
|
@echo "Running Runtest.bat"
|
|
test\Microsoft.ML.OnnxRuntime.EndToEndTests\runtest.bat $(Build.BinariesDirectory)\nuget-artifact net461 x64 $(NuGetPackageVersionNumber)
|
|
workingDirectory: '$(Build.SourcesDirectory)\csharp'
|
|
displayName: 'Run End to End Test (C#) .NetFramework x64'
|
|
env:
|
|
PACKAGENAME: ${{ parameters.NugetPackageName }}
|
|
|
|
- ${{ if ne(parameters['Skipx86Tests'], 'true') }}:
|
|
- script: |
|
|
@echo "Running Runtest.bat"
|
|
test\Microsoft.ML.OnnxRuntime.EndToEndTests\runtest.bat $(Build.BinariesDirectory)\nuget-artifact net461 x86 $(NuGetPackageVersionNumber)
|
|
workingDirectory: '$(Build.SourcesDirectory)\csharp'
|
|
displayName: 'Run End to End Test (C#) .NetFramework x86'
|
|
enabled: false
|
|
env:
|
|
PACKAGENAME: ${{ parameters.NugetPackageName }}
|
|
|
|
- template: ../../templates/component-governance-component-detection-steps.yml
|
|
parameters :
|
|
condition : 'always'
|
|
|
|
- template: ../../templates/clean-agent-build-directory-step.yml
|