mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-29 20:14:01 +00:00
* added the runcoverage powershell script * updated the run coverage script. added installation to the windows CI for trying * exclude other parts of win ci * fix in the download script * fix in the download script * fix in the download script * fix in the download script * fix in the download script * fix in the download script * fix in the download script * fix in the download script * fix in the download script * added the runtestcoverage script to the pipeline * some typo fix * formatting * re-commenting previously commented block * cleaned up the powershell script * fix path in pipeline * fix path in pipeline * fixed model path * some fixes * excluded long running tests * add the publish job * uncomment other tasks * fixed excluded tests * some format correction * stopped running the test debug * try placing the tes-all at the beginning * try running the failing test only * edit run_coverage * some fix * skip onnx_model_test * Added memory size log in powershell script * try running the onnxruntime_test_all.exe separately from codecov * enable error reporting, and double memory size in powershell * corrected the set-item * remove memory resize, since we are already at max 2 GB * fixed the tvm.dll issue * added back the onnx tests in codecov. added back the regular test run * cleanup * remove * from the the module path * add junction target resolution for modules dir * remove junction-resolution * reduced tests * added target extraction for the junction paths in build machine * added the appropriate change in win ci pipeline to call the updated ps script * fix typo * added back all the tests that were disabled * try fixing the source root * cleanup and enable all tests * increase timeout for windows CPU CI due to codecoverage * templatized the code coverage steps. Conitnue on error with any codecoverage step * change quote marks
87 lines
3.5 KiB
YAML
87 lines
3.5 KiB
YAML
# sets up common build tools for the windows build machines before build
|
|
|
|
parameters:
|
|
EnvSetupScript: ''
|
|
buildArch: amd64
|
|
setVcvars: false
|
|
steps:
|
|
- task: NuGetToolInstaller@0
|
|
displayName: Use Nuget 4.9
|
|
inputs:
|
|
versionSpec: 4.9.4
|
|
- task: NuGetCommand@2
|
|
displayName: 'NuGet restore'
|
|
inputs:
|
|
restoreSolution: '$(Build.SourcesDirectory)\csharp\OnnxRuntime.CSharp.sln'
|
|
feedsToUse: config
|
|
nugetConfigPath: '$(Build.SourcesDirectory)\csharp\Nuget.CSharp.config'
|
|
restoreDirectory: '$(Build.SourcesDirectory)\csharp'
|
|
# - task: UniversalPackages@0
|
|
# displayName: 'Download python'
|
|
# inputs:
|
|
# command: download
|
|
# vstsFeed: '$(System.TeamProject)'
|
|
# vstsFeedPackage: 'miniconda3_win64'
|
|
# vstsPackageVersion: '4.5.11'
|
|
# downloadDirectory: '$(Build.BinariesDirectory)\python'
|
|
|
|
# Temporary bypass of artifacts permission issue
|
|
- task: PowerShell@2
|
|
displayName: 'Download python'
|
|
inputs:
|
|
targetType: 'inline'
|
|
script: 'Invoke-WebRequest -OutFile installer.exe https://onnxruntimeinstaller.blob.core.windows.net/conda-installer/installer.exe'
|
|
workingDirectory: '$(Build.BinariesDirectory)'
|
|
|
|
- task: CmdLine@1
|
|
displayName: 'Run python installer'
|
|
inputs:
|
|
filename: '$(Build.BinariesDirectory)\installer.exe'
|
|
arguments: '/S /NoRegistry=1 /AddToPath=0 /RegisterPython=0 /D=$(Build.BinariesDirectory)\packages\python'
|
|
timeoutInMinutes: 10
|
|
- task: BatchScript@1
|
|
displayName: 'setup env'
|
|
inputs:
|
|
filename: '$(Build.SourcesDirectory)\tools\ci_build\github\windows\${{parameters.EnvSetupScript}}'
|
|
modifyEnvironment: true
|
|
workingFolder: '$(Build.BinariesDirectory)'
|
|
- task: CmdLine@1
|
|
displayName: 'Install conda modules'
|
|
inputs:
|
|
filename: '$(Build.BinariesDirectory)\packages\python\scripts\conda.exe'
|
|
arguments: 'install -q --insecure -y pyopenssl setuptools wheel numpy'
|
|
timeoutInMinutes: 10
|
|
|
|
- task: CmdLine@1
|
|
displayName: 'Download cmake'
|
|
inputs:
|
|
filename: '$(Build.BinariesDirectory)\packages\python\python.exe'
|
|
arguments: '$(Build.SourcesDirectory)\tools\ci_build\github\windows\download_cmake.py --build_dir $(Build.BinariesDirectory)'
|
|
|
|
- task: PowerShell@2
|
|
displayName: 'Download OpenCppCoverage installer'
|
|
continueOnError: true
|
|
inputs:
|
|
targetType: 'inline'
|
|
script: '
|
|
New-Item -Path "$(Build.BinariesDirectory)\installer" -ItemType "directory"
|
|
|
|
New-Item -Path "$(Build.BinariesDirectory)\installer\opencppcoverage" -ItemType "directory"
|
|
|
|
Invoke-WebRequest -OutFile $(Build.BinariesDirectory)\installer\opencppcoverage\installer.exe https://onnxruntimeinstaller.blob.core.windows.net/opencppcovergae-installer/OpenCppCoverageSetup-x64-0.9.7.0.exe
|
|
'
|
|
|
|
- task: CmdLine@1
|
|
continueOnError: true
|
|
displayName: 'Run OpenCPPCoverage installer'
|
|
inputs:
|
|
filename: '$(Build.BinariesDirectory)\installer\opencppcoverage\installer.exe'
|
|
arguments: '/SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /DIR="$(Build.BinariesDirectory)\OpenCppCoverage"'
|
|
|
|
- task: BatchScript@1
|
|
displayName: 'Setup VS2017 env vars'
|
|
inputs:
|
|
filename: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat'
|
|
arguments: '${{parameters.buildArch}} -vcvars_ver=14.11'
|
|
modifyEnvironment: true
|
|
condition: ${{parameters.setVcvars}}
|