mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-07 00:13:17 +00:00
* add SAS token to download internal test data for nuget pipeline * update azure endpoint * fix keyvault download step * fix variable declaration for secret group * fix indentation * fix yaml syntax for variables * fix setting secrets for script * fix env synctax * Fix macos pipeline * attempt to add secrets to windows download data * fix mac and win data download * fix windows data download * update test data set url and location
70 lines
2.8 KiB
YAML
70 lines
2.8 KiB
YAML
# sets up common build tools for the windows build machines before build
|
|
|
|
parameters:
|
|
EnvSetupScript: ''
|
|
DoDataDownload: true
|
|
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'
|
|
condition: ${{parameters.DoDataDownload}}
|
|
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'
|
|
condition: ${{parameters.DoDataDownload}}
|
|
inputs:
|
|
filename: '$(Build.BinariesDirectory)\installer\opencppcoverage\installer.exe'
|
|
arguments: '/SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /DIR="$(Build.BinariesDirectory)\OpenCppCoverage"'
|