mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-29 20:14:01 +00:00
1. refactor the pipeline, remove some duplicated code 2. Move Windows_py_GPU_Wheels job to Win-GPU-CUDA10. We'll deprecated the "Win-GPU" pool 3. Delete cpu-nocontribops-esrp-pipeline.yml and cpu-nocontribops-pipeline.yml 4. In Linux nuget jobs, run "make install" before creating the package. So that extra RPAH info will be removed
67 lines
2.7 KiB
YAML
67 lines
2.7 KiB
YAML
# sets up common build tools for the windows build machines before build
|
|
|
|
parameters:
|
|
EnvSetupScript: ''
|
|
steps:
|
|
- task: NuGetToolInstaller@0
|
|
displayName: Use Nuget 4.9
|
|
inputs:
|
|
versionSpec: 4.9.4
|
|
# - 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 AzCopy (used for download test data script)'
|
|
inputs:
|
|
targetType: 'inline'
|
|
script: |
|
|
Invoke-WebRequest -OutFile $(Build.BinariesDirectory)\azcopy.exe https://onnxruntimetestdata.blob.core.windows.net/models/azcopy.exe
|
|
|
|
- task: CmdLine@1
|
|
displayName: 'Download Python'
|
|
inputs:
|
|
filename: '$(Build.BinariesDirectory)\azcopy.exe'
|
|
arguments: 'copy https://onnxruntimetestdata.blob.core.windows.net/models/Miniconda3-4.7.10-Windows-x86_64.exe $(Build.BinariesDirectory)\Miniconda3-4.7.10-Windows-x86_64.exe'
|
|
timeoutInMinutes: 10
|
|
|
|
- task: CmdLine@1
|
|
displayName: 'Run python installer'
|
|
inputs:
|
|
filename: '$(Build.BinariesDirectory)\Miniconda3-4.7.10-Windows-x86_64.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: PythonScript@0
|
|
displayName: 'Download test data'
|
|
inputs:
|
|
scriptPath: '$(Build.SourcesDirectory)\tools\ci_build\github\download_test_data.py'
|
|
arguments: --test_data_url $(TestDataUrl) --build_dir $(Build.BinariesDirectory)
|
|
pythonInterpreter: '$(Build.BinariesDirectory)\packages\python\python.exe'
|
|
workingDirectory: $(Build.BinariesDirectory)
|
|
|
|
- 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"'
|