diff --git a/tools/ci_build/github/azure-pipelines/nuget/templates/windowsai.yml b/tools/ci_build/github/azure-pipelines/nuget/templates/windowsai.yml deleted file mode 100644 index 736b91cb4a..0000000000 --- a/tools/ci_build/github/azure-pipelines/nuget/templates/windowsai.yml +++ /dev/null @@ -1,557 +0,0 @@ -jobs: -- job: WindowsAI_DirectML_X64 - timeoutInMinutes: 120 - workspace: - clean: all - pool: - name: 'onnxruntime-gpu-winbuild-t4' - demands: [] - steps: - - template: ../../templates/windowsai-nuget-build.yml - parameters: - BuildArch: 'x64' - -- job: WindowsAI_DirectML_X86 - timeoutInMinutes: 120 - workspace: - clean: all - pool: - name: 'onnxruntime-gpu-winbuild-t4' - demands: [] - steps: - - template: ../../templates/windowsai-nuget-build.yml - parameters: - BuildArch: 'x86' - -- job: WindowsAI_DirectML_ARM64 - timeoutInMinutes: 120 - workspace: - clean: all - pool: - name: 'onnxruntime-gpu-winbuild-t4' - demands: [] - steps: - - template: ../../templates/windowsai-nuget-build.yml - parameters: - BuildArch: 'arm64' - -- job: WindowsAI_DirectML_ARM - timeoutInMinutes: 120 - workspace: - clean: all - pool: - name: 'onnxruntime-gpu-winbuild-t4' - demands: [] - steps: - - template: ../../templates/windowsai-nuget-build.yml - parameters: - BuildArch: 'arm' - -- job: WindowsAI_DirectML_X64_StaticRuntime - timeoutInMinutes: 120 - workspace: - clean: all - pool: - name: 'onnxruntime-gpu-winbuild-t4' - demands: [ ] - steps: - - template: ../../templates/windowsai-nuget-build.yml - parameters: - BuildArch: 'x64' - Runtime: 'static' - -- job: WindowsAI_DirectML_X86_StaticRuntime - timeoutInMinutes: 120 - workspace: - clean: all - pool: - name: 'onnxruntime-gpu-winbuild-t4' - demands: [ ] - steps: - - template: ../../templates/windowsai-nuget-build.yml - parameters: - BuildArch: 'x86' - Runtime: 'static' - -- job: WindowsAI_DirectML_ARM64_StaticRuntime - timeoutInMinutes: 120 - workspace: - clean: all - pool: - name: 'onnxruntime-gpu-winbuild-t4' - demands: [ ] - steps: - - template: ../../templates/windowsai-nuget-build.yml - parameters: - BuildArch: 'arm64' - Runtime: 'static' - -- job: WindowsAI_DirectML_ARM_StaticRuntime - timeoutInMinutes: 120 - workspace: - clean: all - pool: - name: 'onnxruntime-gpu-winbuild-t4' - demands: [ ] - steps: - - template: ../../templates/windowsai-nuget-build.yml - parameters: - BuildArch: 'arm' - Runtime: 'static' - -- job: NuGet_Packaging - workspace: - clean: all - pool: 'onnxruntime-gpu-winbuild-t4' - dependsOn: - - WindowsAI_DirectML_X64 - - WindowsAI_DirectML_X86 - - WindowsAI_DirectML_ARM64 - - WindowsAI_DirectML_ARM - - WindowsAI_DirectML_X64_StaticRuntime - - WindowsAI_DirectML_X86_StaticRuntime - - WindowsAI_DirectML_ARM64_StaticRuntime - - WindowsAI_DirectML_ARM_StaticRuntime - condition: succeeded() - steps: - - task: DownloadPipelineArtifact@0 - displayName: 'Download Pipeline Artifact - NuGet DirectML x64' - inputs: - artifactName: 'Microsoft.AI.MachineLearning.x64' - targetPath: '$(Build.BinariesDirectory)/nuget-artifact-x64' - - - task: DownloadPipelineArtifact@0 - displayName: 'Download Pipeline Artifact - NuGet DirectML x86' - inputs: - artifactName: 'Microsoft.AI.MachineLearning.x86' - targetPath: '$(Build.BinariesDirectory)/nuget-artifact-x86' - - - task: DownloadPipelineArtifact@0 - displayName: 'Download Pipeline Artifact - NuGet DirectML arm64' - inputs: - artifactName: 'Microsoft.AI.MachineLearning.arm64' - targetPath: '$(Build.BinariesDirectory)/nuget-artifact-arm64' - - - task: DownloadPipelineArtifact@0 - displayName: 'Download Pipeline Artifact - NuGet DirectML arm' - inputs: - artifactName: 'Microsoft.AI.MachineLearning.arm' - targetPath: '$(Build.BinariesDirectory)/nuget-artifact-arm' - - - task: DownloadPipelineArtifact@0 - displayName: 'Download Pipeline Artifact - NuGet DirectML x64 StaticRuntime' - inputs: - artifactName: 'Microsoft.AI.MachineLearning.x64.StaticRuntime' - targetPath: '$(Build.BinariesDirectory)/nuget-artifact-x64-static-runtime' - - - task: DownloadPipelineArtifact@0 - displayName: 'Download Pipeline Artifact - NuGet DirectML x86 StaticRuntime' - inputs: - artifactName: 'Microsoft.AI.MachineLearning.x86.StaticRuntime' - targetPath: '$(Build.BinariesDirectory)/nuget-artifact-x86-static-runtime' - - - task: DownloadPipelineArtifact@0 - displayName: 'Download Pipeline Artifact - NuGet DirectML arm64 StaticRuntime' - inputs: - artifactName: 'Microsoft.AI.MachineLearning.arm64.StaticRuntime' - targetPath: '$(Build.BinariesDirectory)/nuget-artifact-arm64-static-runtime' - - - task: DownloadPipelineArtifact@0 - displayName: 'Download Pipeline Artifact - NuGet DirectML arm StaticRuntime' - inputs: - artifactName: 'Microsoft.AI.MachineLearning.arm.StaticRuntime' - targetPath: '$(Build.BinariesDirectory)/nuget-artifact-arm-static-runtime' - - - task: PowerShell@2 - displayName: 'Bundle NuGet and other binaries' - inputs: - targetType: 'inline' - script: | - Add-Type -AssemblyName "System.IO.Compression.FileSystem" - - $nupkgs = (Get-ChildItem -Filter Microsoft.AI.MachineLearning*.nupkg -Recurse) - $x64_nuget_package_name = $nupkgs[0].Name - $x64_nuget_package = $nupkgs[0].FullName - $x64_nupkg_unzipped_directory_root = $nupkgs[0].Directory.FullName - $x64_nupkg_unzipped_directory = [System.IO.Path]::Combine($x64_nupkg_unzipped_directory_root, 'binaries', [System.IO.Path]::GetFileNameWithoutExtension($x64_nuget_package)) - [System.IO.Compression.ZipFile]::ExtractToDirectory($x64_nuget_package, $x64_nupkg_unzipped_directory) - - $nupkgs = (Get-ChildItem ..\nuget-artifact-x64-static-runtime -Filter Microsoft.AI.MachineLearning*.nupkg -Recurse) - $x64_static_runtime_nuget_package = $nupkgs[0].FullName - $x64_static_runtime_nupkg_unzipped_directory_root = $nupkgs[0].Directory.FullName - $x64_static_runtime_nupkg_unzipped_directory = [System.IO.Path]::Combine($x64_static_runtime_nupkg_unzipped_directory_root, 'binaries', [System.IO.Path]::GetFileNameWithoutExtension($x64_static_runtime_nuget_package)) - [System.IO.Compression.ZipFile]::ExtractToDirectory($x64_static_runtime_nuget_package, $x64_static_runtime_nupkg_unzipped_directory) - - $nupkgs = (Get-ChildItem ..\nuget-artifact-x86 -Filter Microsoft.AI.MachineLearning*.nupkg -Recurse) - $x86_nuget_package = $nupkgs[0].FullName - $x86_nupkg_unzipped_directory_root = $nupkgs[0].Directory.FullName - $x86_nupkg_unzipped_directory = [System.IO.Path]::Combine($x86_nupkg_unzipped_directory_root, 'binaries', [System.IO.Path]::GetFileNameWithoutExtension($x86_nuget_package)) - [System.IO.Compression.ZipFile]::ExtractToDirectory($x86_nuget_package, $x86_nupkg_unzipped_directory) - - $nupkgs = (Get-ChildItem ..\nuget-artifact-x86-static-runtime -Filter Microsoft.AI.MachineLearning*.nupkg -Recurse) - $x86_static_runtime_nuget_package = $nupkgs[0].FullName - $x86_static_runtime_nupkg_unzipped_directory_root = $nupkgs[0].Directory.FullName - $x86_static_runtime_nupkg_unzipped_directory = [System.IO.Path]::Combine($x86_static_runtime_nupkg_unzipped_directory_root, 'binaries', [System.IO.Path]::GetFileNameWithoutExtension($x86_static_runtime_nuget_package)) - [System.IO.Compression.ZipFile]::ExtractToDirectory($x86_static_runtime_nuget_package, $x86_static_runtime_nupkg_unzipped_directory) - - $nupkgs = (Get-ChildItem ..\nuget-artifact-arm64 -Filter Microsoft.AI.MachineLearning*.nupkg -Recurse) - $arm64_nuget_package = $nupkgs[0].FullName - $arm64_nupkg_unzipped_directory_root = $nupkgs[0].Directory.FullName - $arm64_nupkg_unzipped_directory = [System.IO.Path]::Combine($arm64_nupkg_unzipped_directory_root, 'binaries', [System.IO.Path]::GetFileNameWithoutExtension($arm64_nuget_package)) - [System.IO.Compression.ZipFile]::ExtractToDirectory($arm64_nuget_package, $arm64_nupkg_unzipped_directory) - - $nupkgs = (Get-ChildItem ..\nuget-artifact-arm64-static-runtime -Filter Microsoft.AI.MachineLearning*.nupkg -Recurse) - $arm64_static_runtime_nuget_package = $nupkgs[0].FullName - $arm64_static_runtime_nupkg_unzipped_directory_root = $nupkgs[0].Directory.FullName - $arm64_static_runtime_nupkg_unzipped_directory = [System.IO.Path]::Combine($arm64_static_runtime_nupkg_unzipped_directory_root, 'binaries', [System.IO.Path]::GetFileNameWithoutExtension($arm64_static_runtime_nuget_package)) - [System.IO.Compression.ZipFile]::ExtractToDirectory($arm64_static_runtime_nuget_package, $arm64_static_runtime_nupkg_unzipped_directory) - - $nupkgs = (Get-ChildItem ..\nuget-artifact-arm -Filter Microsoft.AI.MachineLearning*.nupkg -Recurse) - $arm_nuget_package = $nupkgs[0].FullName - $arm_nupkg_unzipped_directory_root = $nupkgs[0].Directory.FullName - $arm_nupkg_unzipped_directory = [System.IO.Path]::Combine($arm_nupkg_unzipped_directory_root, 'binaries', [System.IO.Path]::GetFileNameWithoutExtension($arm_nuget_package)) - [System.IO.Compression.ZipFile]::ExtractToDirectory($arm_nuget_package, $arm_nupkg_unzipped_directory) - - $nupkgs = (Get-ChildItem ..\nuget-artifact-arm-static-runtime -Filter Microsoft.AI.MachineLearning*.nupkg -Recurse) - $arm_static_runtime_nuget_package = $nupkgs[0].FullName - $arm_static_runtime_nupkg_unzipped_directory_root = $nupkgs[0].Directory.FullName - $arm_static_runtime_nupkg_unzipped_directory = [System.IO.Path]::Combine($arm_static_runtime_nupkg_unzipped_directory_root, 'binaries', [System.IO.Path]::GetFileNameWithoutExtension($arm_static_runtime_nuget_package)) - [System.IO.Compression.ZipFile]::ExtractToDirectory($arm_static_runtime_nuget_package, $arm_static_runtime_nupkg_unzipped_directory) - - $x64_static_runtime_path_old = [System.IO.Path]::Combine($x64_static_runtime_nupkg_unzipped_directory, 'runtimes', 'win-x64', '_native') - $x64_static_runtime_path_new = [System.IO.Path]::Combine($x64_nupkg_unzipped_directory, 'runtimes', 'win-x64', '_native', 'static') - $x86_runtime_path_old = [System.IO.Path]::Combine($x86_nupkg_unzipped_directory, 'runtimes', 'win-x86', '_native') - $x86_runtime_path_new = [System.IO.Path]::Combine($x64_nupkg_unzipped_directory, 'runtimes', 'win-x86', '_native') - $x86_static_runtime_path_old = [System.IO.Path]::Combine($x86_static_runtime_nupkg_unzipped_directory, 'runtimes', 'win-x86', '_native') - $x86_static_runtime_path_new = [System.IO.Path]::Combine($x64_nupkg_unzipped_directory, 'runtimes', 'win-x86', '_native', 'static') - $arm64_runtime_path_old = [System.IO.Path]::Combine($arm64_nupkg_unzipped_directory, 'runtimes', 'win-arm64', '_native') - $arm64_runtime_path_new = [System.IO.Path]::Combine($x64_nupkg_unzipped_directory, 'runtimes', 'win-arm64', '_native') - $arm64_static_runtime_path_old = [System.IO.Path]::Combine($arm64_static_runtime_nupkg_unzipped_directory, 'runtimes', 'win-arm64', '_native') - $arm64_static_runtime_path_new = [System.IO.Path]::Combine($x64_nupkg_unzipped_directory, 'runtimes', 'win-arm64', '_native', 'static') - $arm_runtime_path_old = [System.IO.Path]::Combine($arm_nupkg_unzipped_directory, 'runtimes', 'win-arm', '_native') - $arm_runtime_path_new = [System.IO.Path]::Combine($x64_nupkg_unzipped_directory, 'runtimes', 'win-arm', '_native') - $arm_static_runtime_path_old = [System.IO.Path]::Combine($arm_static_runtime_nupkg_unzipped_directory, 'runtimes', 'win-arm', '_native') - $arm_static_runtime_path_new = [System.IO.Path]::Combine($x64_nupkg_unzipped_directory, 'runtimes', 'win-arm', '_native', 'static') - $uap_build_path_old = [System.IO.Path]::Combine($x64_static_runtime_nupkg_unzipped_directory, 'build', 'native') - $uap_build_path_new = [System.IO.Path]::Combine($x64_nupkg_unzipped_directory, 'build', 'uap10.0') - - New-Item -Path $x64_static_runtime_path_new -ItemType Directory - New-Item -Path $x86_runtime_path_new -ItemType Directory - New-Item -Path $x86_static_runtime_path_new -ItemType Directory - New-Item -Path $arm64_runtime_path_new -ItemType Directory - New-Item -Path $arm64_static_runtime_path_new -ItemType Directory - New-Item -Path $arm_runtime_path_new -ItemType Directory - New-Item -Path $arm_static_runtime_path_new -ItemType Directory - - Copy-Item ([System.IO.Path]::Combine($x86_runtime_path_old, 'onnxruntime.dll')) $x86_runtime_path_new - Copy-Item ([System.IO.Path]::Combine($x86_runtime_path_old, 'onnxruntime.lib')) $x86_runtime_path_new - Copy-Item ([System.IO.Path]::Combine($x86_runtime_path_old, 'microsoft.ai.machinelearning.dll')) $x86_runtime_path_new - Copy-Item ([System.IO.Path]::Combine($x86_runtime_path_old, 'microsoft.ai.machinelearning.lib')) $x86_runtime_path_new - - Copy-Item ([System.IO.Path]::Combine($arm64_runtime_path_old, 'onnxruntime.dll')) $arm64_runtime_path_new - Copy-Item ([System.IO.Path]::Combine($arm64_runtime_path_old, 'onnxruntime.lib')) $arm64_runtime_path_new - Copy-Item ([System.IO.Path]::Combine($arm64_runtime_path_old, 'microsoft.ai.machinelearning.dll')) $arm64_runtime_path_new - Copy-Item ([System.IO.Path]::Combine($arm64_runtime_path_old, 'microsoft.ai.machinelearning.lib')) $arm64_runtime_path_new - - Copy-Item ([System.IO.Path]::Combine($arm_runtime_path_old, 'onnxruntime.dll')) $arm_runtime_path_new - Copy-Item ([System.IO.Path]::Combine($arm_runtime_path_old, 'onnxruntime.lib')) $arm_runtime_path_new - Copy-Item ([System.IO.Path]::Combine($arm_runtime_path_old, 'microsoft.ai.machinelearning.dll')) $arm_runtime_path_new - Copy-Item ([System.IO.Path]::Combine($arm_runtime_path_old, 'microsoft.ai.machinelearning.lib')) $arm_runtime_path_new - - Copy-Item ([System.IO.Path]::Combine($x64_static_runtime_path_old, 'onnxruntime.dll')) ([System.IO.Path]::Combine($x64_static_runtime_path_new, 'onnxruntime.dll')) - Copy-Item ([System.IO.Path]::Combine($x64_static_runtime_path_old, 'onnxruntime.lib')) ([System.IO.Path]::Combine($x64_static_runtime_path_new, 'onnxruntime.lib')) - Copy-Item ([System.IO.Path]::Combine($x64_static_runtime_path_old, 'microsoft.ai.machinelearning.dll')) ([System.IO.Path]::Combine($x64_static_runtime_path_new, 'microsoft.ai.machinelearning.dll')) - Copy-Item ([System.IO.Path]::Combine($x64_static_runtime_path_old, 'microsoft.ai.machinelearning.lib')) ([System.IO.Path]::Combine($x64_static_runtime_path_new, 'microsoft.ai.machinelearning.lib')) - - Copy-Item ([System.IO.Path]::Combine($x86_static_runtime_path_old, 'onnxruntime.dll')) ([System.IO.Path]::Combine($x86_static_runtime_path_new, 'onnxruntime.dll')) - Copy-Item ([System.IO.Path]::Combine($x86_static_runtime_path_old, 'onnxruntime.lib')) ([System.IO.Path]::Combine($x86_static_runtime_path_new, 'onnxruntime.lib')) - Copy-Item ([System.IO.Path]::Combine($x86_static_runtime_path_old, 'microsoft.ai.machinelearning.dll')) ([System.IO.Path]::Combine($x86_static_runtime_path_new, 'microsoft.ai.machinelearning.dll')) - Copy-Item ([System.IO.Path]::Combine($x86_static_runtime_path_old, 'microsoft.ai.machinelearning.lib')) ([System.IO.Path]::Combine($x86_static_runtime_path_new, 'microsoft.ai.machinelearning.lib')) - - Copy-Item ([System.IO.Path]::Combine($arm64_static_runtime_path_old, 'onnxruntime.dll')) ([System.IO.Path]::Combine($arm64_static_runtime_path_new, 'onnxruntime.dll')) - Copy-Item ([System.IO.Path]::Combine($arm64_static_runtime_path_old, 'onnxruntime.lib')) ([System.IO.Path]::Combine($arm64_static_runtime_path_new, 'onnxruntime.lib')) - Copy-Item ([System.IO.Path]::Combine($arm64_static_runtime_path_old, 'microsoft.ai.machinelearning.dll')) ([System.IO.Path]::Combine($arm64_static_runtime_path_new, 'microsoft.ai.machinelearning.dll')) - Copy-Item ([System.IO.Path]::Combine($arm64_static_runtime_path_old, 'microsoft.ai.machinelearning.lib')) ([System.IO.Path]::Combine($arm64_static_runtime_path_new, 'microsoft.ai.machinelearning.lib')) - - Copy-Item ([System.IO.Path]::Combine($arm_static_runtime_path_old, 'onnxruntime.dll')) ([System.IO.Path]::Combine($arm_static_runtime_path_new, 'onnxruntime.dll')) - Copy-Item ([System.IO.Path]::Combine($arm_static_runtime_path_old, 'onnxruntime.lib')) ([System.IO.Path]::Combine($arm_static_runtime_path_new, 'onnxruntime.lib')) - Copy-Item ([System.IO.Path]::Combine($arm_static_runtime_path_old, 'microsoft.ai.machinelearning.dll')) ([System.IO.Path]::Combine($arm_static_runtime_path_new, 'microsoft.ai.machinelearning.dll')) - Copy-Item ([System.IO.Path]::Combine($arm_static_runtime_path_old, 'microsoft.ai.machinelearning.lib')) ([System.IO.Path]::Combine($arm_static_runtime_path_new, 'microsoft.ai.machinelearning.lib')) - - Copy-Item -Recurse $uap_build_path_old $uap_build_path_new - - $merged_nuget_path = [System.IO.Path]::Combine($Env:BUILD_ARTIFACTSTAGINGDIRECTORY, 'merged') - if (!(Test-Path $merged_nuget_path)) { - New-Item -Path $merged_nuget_path -ItemType Directory - } - - $merged_nuget = [System.IO.Path]::Combine($merged_nuget_path, $x64_nuget_package_name) - $merged_nuget_as_zip = [System.IO.Path]::ChangeExtension($merged_nuget, '.zip') - - $zip_tool_directory = [System.IO.Path]::Combine($x64_nupkg_unzipped_directory_root, 'ziptool') - if (!(Test-Path $zip_tool_directory)) { - New-Item -Path $zip_tool_directory -ItemType Directory - } - - $zip_tool = [System.IO.Path]::Combine($zip_tool_directory, 'zip.exe') - - Invoke-WebRequest http://stahlworks.com/dev/zip.exe -OutFile $zip_tool - Start-Process -FilePath $zip_tool -ArgumentList "-r $merged_nuget ." -WorkingDirectory $x64_nupkg_unzipped_directory -NoNewWindow -Wait - - Copy-Item -Path $merged_nuget -Destination $merged_nuget_as_zip - workingDirectory: $(Build.BinariesDirectory)\nuget-artifact-x64 - - - task: PowerShell@2 - displayName: 'Bundle Symbols NuGet' - inputs: - targetType: 'inline' - script: | - Add-Type -AssemblyName "System.IO.Compression.FileSystem" - - $nupkgs = (Get-ChildItem -Filter Microsoft.AI.MachineLearning*.snupkg -Recurse) - $x64_nuget_package_name = $nupkgs[0].Name - $x64_nuget_package = $nupkgs[0].FullName - $x64_nupkg_unzipped_directory_root = $nupkgs[0].Directory.FullName - $x64_nupkg_unzipped_directory = [System.IO.Path]::Combine($x64_nupkg_unzipped_directory_root, 'symbols', [System.IO.Path]::GetFileNameWithoutExtension($x64_nuget_package)) - [System.IO.Compression.ZipFile]::ExtractToDirectory($x64_nuget_package, $x64_nupkg_unzipped_directory) - - $nupkgs = (Get-ChildItem ..\nuget-artifact-x86 -Filter Microsoft.AI.MachineLearning*.snupkg -Recurse) - $x86_nuget_package = $nupkgs[0].FullName - $x86_nupkg_unzipped_directory_root = $nupkgs[0].Directory.FullName - $x86_nupkg_unzipped_directory = [System.IO.Path]::Combine($x86_nupkg_unzipped_directory_root, 'symbols', [System.IO.Path]::GetFileNameWithoutExtension($x86_nuget_package)) - [System.IO.Compression.ZipFile]::ExtractToDirectory($x86_nuget_package, $x86_nupkg_unzipped_directory) - - $nupkgs = (Get-ChildItem ..\nuget-artifact-arm64 -Filter Microsoft.AI.MachineLearning*.snupkg -Recurse) - $arm64_nuget_package = $nupkgs[0].FullName - $arm64_nupkg_unzipped_directory_root = $nupkgs[0].Directory.FullName - $arm64_nupkg_unzipped_directory = [System.IO.Path]::Combine($arm64_nupkg_unzipped_directory_root, 'symbols', [System.IO.Path]::GetFileNameWithoutExtension($arm64_nuget_package)) - [System.IO.Compression.ZipFile]::ExtractToDirectory($arm64_nuget_package, $arm64_nupkg_unzipped_directory) - - $nupkgs = (Get-ChildItem ..\nuget-artifact-arm -Filter Microsoft.AI.MachineLearning*.snupkg -Recurse) - $arm_nuget_package = $nupkgs[0].FullName - $arm_nupkg_unzipped_directory_root = $nupkgs[0].Directory.FullName - $arm_nupkg_unzipped_directory = [System.IO.Path]::Combine($arm_nupkg_unzipped_directory_root, 'symbols', [System.IO.Path]::GetFileNameWithoutExtension($arm_nuget_package)) - [System.IO.Compression.ZipFile]::ExtractToDirectory($arm_nuget_package, $arm_nupkg_unzipped_directory) - - $x86_runtime_path_old = [System.IO.Path]::Combine($x86_nupkg_unzipped_directory, 'runtimes', 'win-x86', '_native') - $x86_runtime_path_new = [System.IO.Path]::Combine($x64_nupkg_unzipped_directory, 'runtimes', 'win-x86', '_native') - $arm64_runtime_path_old = [System.IO.Path]::Combine($arm64_nupkg_unzipped_directory, 'runtimes', 'win-arm64', '_native') - $arm64_runtime_path_new = [System.IO.Path]::Combine($x64_nupkg_unzipped_directory, 'runtimes', 'win-arm64', '_native') - $arm_runtime_path_old = [System.IO.Path]::Combine($arm_nupkg_unzipped_directory, 'runtimes', 'win-arm', '_native') - $arm_runtime_path_new = [System.IO.Path]::Combine($x64_nupkg_unzipped_directory, 'runtimes', 'win-arm', '_native') - - New-Item -Path $x86_runtime_path_new -ItemType Directory - New-Item -Path $arm64_runtime_path_new -ItemType Directory - New-Item -Path $arm_runtime_path_new -ItemType Directory - - Copy-Item ([System.IO.Path]::Combine($x86_runtime_path_old, 'onnxruntime.pdb')) $x86_runtime_path_new - Copy-Item ([System.IO.Path]::Combine($x86_runtime_path_old, 'microsoft.ai.machinelearning.pdb')) $x86_runtime_path_new - - Copy-Item ([System.IO.Path]::Combine($arm64_runtime_path_old, 'onnxruntime.pdb')) $arm64_runtime_path_new - Copy-Item ([System.IO.Path]::Combine($arm64_runtime_path_old, 'microsoft.ai.machinelearning.pdb')) $arm64_runtime_path_new - - Copy-Item ([System.IO.Path]::Combine($arm_runtime_path_old, 'onnxruntime.pdb')) $arm_runtime_path_new - Copy-Item ([System.IO.Path]::Combine($arm_runtime_path_old, 'microsoft.ai.machinelearning.pdb')) $arm_runtime_path_new - - $merged_nuget_path = [System.IO.Path]::Combine($Env:BUILD_ARTIFACTSTAGINGDIRECTORY, 'merged') - if (!(Test-Path $merged_nuget_path)) { - New-Item -Path $merged_nuget_path -ItemType Directory - } - - $merged_nuget = [System.IO.Path]::Combine($merged_nuget_path, $x64_nuget_package_name) - $merged_nuget_as_zip = [System.IO.Path]::ChangeExtension($merged_nuget, '.symbols.zip') - - $zip_tool_directory = [System.IO.Path]::Combine($x64_nupkg_unzipped_directory_root, 'ziptool') - if (!(Test-Path $zip_tool_directory)) { - New-Item -Path $zip_tool_directory -ItemType Directory - } - - $zip_tool = [System.IO.Path]::Combine($zip_tool_directory, 'zip.exe') - - Invoke-WebRequest http://stahlworks.com/dev/zip.exe -OutFile $zip_tool - Start-Process -FilePath $zip_tool -ArgumentList "-r $merged_nuget ." -WorkingDirectory $x64_nupkg_unzipped_directory -NoNewWindow -Wait - - Copy-Item -Path $merged_nuget -Destination $merged_nuget_as_zip - workingDirectory: $(Build.BinariesDirectory)\nuget-artifact-x64 - - - template: ../../templates/esrp_nuget.yml - parameters: - DisplayName: 'ESRP - sign NuGet package' - FolderPath: '$(Build.ArtifactStagingDirectory)/merged' - DoEsrp: 'true' - - - template: ../../templates/validate-package.yml - parameters: - PackageType: 'nuget' - PackagePath: '$(Build.ArtifactStagingDirectory)\merged' - PackageName: 'Microsoft.AI.MachineLearning*nupkg' - PlatformsSupported: 'win-x64,win-x86,win-arm64,win-arm' - VerifyNugetSigning: 'true' - - - 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: x64 - modifyEnvironment: true - - - task: NuGetToolInstaller@0 - displayName: Use Nuget 5.7.0 - inputs: - versionSpec: 5.7.0 - - - task: PowerShell@2 - displayName: 'NuGet Tests: Restore Windows.AI.MachineLearning Nuget Package (CppWinRT)' - inputs: - targetType: 'inline' - script: | - Add-Type -AssemblyName "System.IO.Compression.FileSystem" - - $nupkgs = (Get-ChildItem -Filter Microsoft.AI.MachineLearning*) - $merged_nuget_package = $nupkgs[0] - $merged_nuget_package_name = $merged_nuget_package.Name - $matched_name = ($merged_nuget_package_name -match "Microsoft.AI.MachineLearning.(?.*).nupkg") - $package_version = $matches['version'] - - $src_root_dir = $Env:BUILD_SOURCESDIRECTORY; - $artifacts_staging_dir = $Env:BUILD_ARTIFACTSTAGINGDIRECTORY; - $merged_nuget_path = [System.IO.Path]::Combine($artifacts_staging_dir, 'merged') - $src_dir = [System.IO.Path]::Combine($src_root_dir, 'csharp', 'test', 'Microsoft.AI.MachineLearning.Tests') - $packages_dir = [System.IO.Path]::Combine($src_dir, 'packages') - $csproj = [System.IO.Path]::Combine($src_dir, 'Microsoft.AI.MachineLearning.Tests.vcxproj') - - $input_props = [System.IO.Path]::Combine($src_dir, 'Microsoft.AI.MachineLearning.Tests.props.pp') - $output_props = [System.IO.Path]::Combine($src_dir, 'Microsoft.AI.MachineLearning.Tests.props') - $input_props_content = Get-Content -Path $input_props - $output_props_content = $input_props_content -replace '\[PackageVersion\]', $package_version - Set-Content -Path $output_props -Value $output_props_content - - nuget restore -PackagesDirectory $packages_dir -Source https://api.nuget.org/v3/index.json -Source $merged_nuget_path $csproj - - $project_assets_json = [System.IO.Path]::Combine($src_dir, 'obj', 'project.assets.json') - Remove-Item -Force $project_assets_json - workingDirectory: $(Build.ArtifactStagingDirectory)\merged - - - task: PowerShell@2 - displayName: 'NuGet Tests: Build Tests (CppWinRT)' - inputs: - targetType: 'inline' - script: | - msbuild /p:Platform=x86 Microsoft.AI.MachineLearning.Tests.vcxproj - msbuild /p:Platform=x64 Microsoft.AI.MachineLearning.Tests.vcxproj - workingDirectory: $(Build.SourcesDirectory)\csharp\test\Microsoft.AI.MachineLearning.Tests - - - task: PowerShell@2 - displayName: 'NuGet Tests: Fix Nuget Package references (.NET 5.0)' - inputs: - targetType: 'inline' - script: | - Add-Type -AssemblyName "System.IO.Compression.FileSystem" - $src_root_dir = $Env:BUILD_SOURCESDIRECTORY; - $artifacts_staging_dir = $Env:BUILD_ARTIFACTSTAGINGDIRECTORY; - $merged_nuget_path = [System.IO.Path]::Combine($artifacts_staging_dir, 'merged') - $nupkgs = (Get-ChildItem -Filter Microsoft.AI.MachineLearning*) - $merged_nuget_package = $nupkgs[0] - $merged_nuget_package_name = $merged_nuget_package.Name - $matched_name = ($merged_nuget_package_name -match "Microsoft.AI.MachineLearning.(?.*).nupkg") - $package_version = $matches['version'] - $src_dir = [System.IO.Path]::Combine($src_root_dir, 'csharp', 'test', 'Microsoft.AI.MachineLearning.Tests.DotNet5_0') - $input_csproj = [System.IO.Path]::Combine($src_dir, 'Microsoft.AI.MachineLearning.Tests.DotNet5_0.csproj.pp') - $csproj = [System.IO.Path]::Combine($src_dir, 'Microsoft.AI.MachineLearning.Tests.DotNet5_0.csproj') - $input_csproj_content = Get-Content -Path $input_csproj - $csproj_content = $input_csproj_content -replace '\[PackageVersion\]', $package_version - Set-Content -Path $csproj -Value $csproj_content - $input_nuget_config = [System.IO.Path]::Combine($src_dir, 'NuGet.config.pp') - $nuget_config = [System.IO.Path]::Combine($src_dir, 'NuGet.config') - $input_nuget_config_content = Get-Content -Path $input_nuget_config - $nuget_config_content = $input_nuget_config_content -replace '\[BuildPackageSource\]', $merged_nuget_path - Set-Content -Path $nuget_config -Value $nuget_config_content - workingDirectory: $(Build.ArtifactStagingDirectory)\merged - - - task: PowerShell@2 - displayName: 'NuGet Tests: Build Tests (.NET 5.0)' - inputs: - targetType: 'inline' - script: | - msbuild Microsoft.AI.MachineLearning.Tests.DotNet5_0.csproj /p:Platform=x64 /t:Restore - msbuild Microsoft.AI.MachineLearning.Tests.DotNet5_0.csproj /p:Platform=x64 - msbuild Microsoft.AI.MachineLearning.Tests.DotNet5_0.csproj /p:Platform=AnyCpu /t:Restore - msbuild Microsoft.AI.MachineLearning.Tests.DotNet5_0.csproj /p:Platform=AnyCpu - workingDirectory: $(Build.SourcesDirectory)\csharp\test\Microsoft.AI.MachineLearning.Tests.DotNet5_0 - - - - task: PowerShell@2 - displayName: 'NuGet Tests: Fix Nuget Package references (C# UWP)' - inputs: - targetType: 'inline' - script: | - Add-Type -AssemblyName "System.IO.Compression.FileSystem" - $src_root_dir = $Env:BUILD_SOURCESDIRECTORY; - $artifacts_staging_dir = $Env:BUILD_ARTIFACTSTAGINGDIRECTORY; - $merged_nuget_path = [System.IO.Path]::Combine($artifacts_staging_dir, 'merged') - $nupkgs = (Get-ChildItem -Filter Microsoft.AI.MachineLearning*) - $merged_nuget_package = $nupkgs[0] - $merged_nuget_package_name = $merged_nuget_package.Name - $matched_name = ($merged_nuget_package_name -match "Microsoft.AI.MachineLearning.(?.*).nupkg") - $package_version = $matches['version'] - $src_dir = [System.IO.Path]::Combine($src_root_dir, 'csharp', 'test', 'Microsoft.AI.MachineLearning.Tests.Uwp') - $input_csproj = [System.IO.Path]::Combine($src_dir, 'Microsoft.AI.MachineLearning.Tests.Uwp.csproj.pp') - $csproj = [System.IO.Path]::Combine($src_dir, 'Microsoft.AI.MachineLearning.Tests.Uwp.csproj') - $input_csproj_content = Get-Content -Path $input_csproj - $csproj_content = $input_csproj_content -replace '\[PackageVersion\]', $package_version - Set-Content -Path $csproj -Value $csproj_content - $input_nuget_config = [System.IO.Path]::Combine($src_dir, 'NuGet.config.pp') - $nuget_config = [System.IO.Path]::Combine($src_dir, 'NuGet.config') - $input_nuget_config_content = Get-Content -Path $input_nuget_config - $nuget_config_content = $input_nuget_config_content -replace '\[BuildPackageSource\]', $merged_nuget_path - Set-Content -Path $nuget_config -Value $nuget_config_content - workingDirectory: $(Build.ArtifactStagingDirectory)\merged - - - task: PowerShell@2 - displayName: 'NuGet Tests: Build Tests (C# UWP)' - inputs: - targetType: 'inline' - script: | - msbuild Microsoft.AI.MachineLearning.Tests.Uwp.csproj /p:Platform=x64 /t:Restore - msbuild Microsoft.AI.MachineLearning.Tests.Uwp.csproj /p:Platform=x64 - msbuild Microsoft.AI.MachineLearning.Tests.Uwp.csproj /p:Platform=x86 /t:Restore - msbuild Microsoft.AI.MachineLearning.Tests.Uwp.csproj /p:Platform=x86 - msbuild Microsoft.AI.MachineLearning.Tests.Uwp.csproj /p:Platform=ARM /t:Restore - msbuild Microsoft.AI.MachineLearning.Tests.Uwp.csproj /p:Platform=ARM - msbuild Microsoft.AI.MachineLearning.Tests.Uwp.csproj /p:Platform=ARM64 /t:Restore - msbuild Microsoft.AI.MachineLearning.Tests.Uwp.csproj /p:Platform=ARM64 - workingDirectory: $(Build.SourcesDirectory)\csharp\test\Microsoft.AI.MachineLearning.Tests.Uwp - - - task: PowerShell@2 - displayName: 'NuGet Tests: Run Tests' - continueOnError: true - inputs: - targetType: 'inline' - script: | - Write-Host "Run Microsoft.AI.MachineLearning CppWinRT Tests (x86)" - pushd .\Microsoft.AI.MachineLearning.Tests\Debug - .\Microsoft.AI.MachineLearning.Tests.exe - popd - Write-Host "Run Microsoft.AI.MachineLearning CppWinRT Tests (x64)" - pushd .\Microsoft.AI.MachineLearning.Tests\x64\Debug - .\Microsoft.AI.MachineLearning.Tests.exe - popd - - Write-Host "Run Microsoft.AI.MachineLearning CSharp Tests (DotNet5_0)" - pushd .\Microsoft.AI.MachineLearning.Tests.DotNet5_0\bin\Debug\net5.0-windows10.0.17763.0 - .\Microsoft.AI.MachineLearning.Tests.DotNet5_0.exe - popd - - Write-Host "Run Microsoft.AI.MachineLearning CSharp Tests (AnyCpu)" - pushd .\Microsoft.AI.MachineLearning.Tests.DotNet5_0\bin\x64\Debug\net5.0-windows10.0.17763.0 - .\Microsoft.AI.MachineLearning.Tests.DotNet5_0.exe - popd - - Write-Host "Done!" - workingDirectory: $(Build.SourcesDirectory)\csharp\test - - - task: PublishPipelineArtifact@0 - displayName: 'Publish Pipeline NuGet Artifact' - inputs: - artifactName: 'drop-signed-nuget' - targetPath: '$(Build.ArtifactStagingDirectory)/merged' diff --git a/tools/ci_build/github/azure-pipelines/templates/java-api-artifacts-package-and-publish-steps-windows.yml b/tools/ci_build/github/azure-pipelines/templates/java-api-artifacts-package-and-publish-steps-windows.yml deleted file mode 100644 index 233e80b5e3..0000000000 --- a/tools/ci_build/github/azure-pipelines/templates/java-api-artifacts-package-and-publish-steps-windows.yml +++ /dev/null @@ -1,60 +0,0 @@ -# sets up common build tools for the windows build machines before build - -parameters: - buildConfig: 'RelWithDebInfo' - artifactName: 'onnxruntime-java-win-x64' - version: '' - comitId: '' -steps: - - task: CmdLine@2 - inputs: - script: | - @echo on - set NATIVE_FOLDER=$(Build.BinariesDirectory)\${{parameters.artifactName}}\stage\ai\onnxruntime\native\win-x64 - mkdir %NATIVE_FOLDER% - echo "Directories created" - copy .\java\build\libs\*.jar $(Build.BinariesDirectory)\${{parameters.artifactName}} - pushd $(Build.BinariesDirectory)\${{parameters.artifactName}} - if ${{parameters.artifactName}} == onnxruntime-java-win-x64 ( - set artifact_id=onnxruntime - ) else ( - set artifact_id=onnxruntime_gpu - ) - jar xf onnxruntime-${{parameters.version}}.jar META-INF\maven\com.microsoft.onnxruntime\%artifact_id%\pom.xml - move META-INF\maven\com.microsoft.onnxruntime\%artifact_id%\pom.xml onnxruntime-${{parameters.version}}.pom - rd /s /q META-INF - popd - copy .\${{parameters.buildConfig}}\onnxruntime.pdb %NATIVE_FOLDER% - copy .\${{parameters.buildConfig}}\onnxruntime4j_jni.pdb %NATIVE_FOLDER% - copy $(Build.SourcesDirectory)\docs\Privacy.md $(Build.BinariesDirectory)\${{parameters.artifactName}}\stage\Privacy.md - copy $(Build.SourcesDirectory)\ThirdPartyNotices.txt $(Build.BinariesDirectory)\${{parameters.artifactName}}\stage\ThirdPartyNotices.txt - @echo ${{parameters.commitId}} > $(Build.BinariesDirectory)\${{parameters.artifactName}}\stage\GIT_COMMIT_ID - pushd $(Build.BinariesDirectory)\${{parameters.artifactName}}\stage - jar uf $(Build.BinariesDirectory)\${{parameters.artifactName}}\onnxruntime-${{parameters.version}}.jar ai\onnxruntime\native\win-x64\onnxruntime.pdb - jar uf $(Build.BinariesDirectory)\${{parameters.artifactName}}\onnxruntime-${{parameters.version}}.jar ai\onnxruntime\native\win-x64\onnxruntime4j_jni.pdb - jar uf $(Build.BinariesDirectory)\${{parameters.artifactName}}\onnxruntime-${{parameters.version}}.jar Privacy.md ThirdPartyNotices.txt GIT_COMMIT_ID - popd - pushd $(Build.SourcesDirectory)\java\build\classes\java\test - jar cvf $(Build.BinariesDirectory)\${{parameters.artifactName}}\testing.jar . - popd - pushd $(Build.SourcesDirectory)\java\build\resources\test - rd /s /q ai\onnxruntime\native - jar uvf $(Build.BinariesDirectory)\${{parameters.artifactName}}\testing.jar . - popd - rd /s /q $(Build.BinariesDirectory)\${{parameters.artifactName}}\stage - dir /s /b $(Build.BinariesDirectory)\${{parameters.artifactName}} - workingDirectory: '$(Build.BinariesDirectory)\${{parameters.buildConfig}}' - displayName: 'Add symbols and notices' - - - task: ArchiveFiles@2 - inputs: - rootFolderOrFile: '$(Build.BinariesDirectory)\${{parameters.artifactName}}' - includeRootFolder: true - archiveType: 'zip' # Options: zip, 7z, tar, wim - archiveFile: '$(Build.ArtifactStagingDirectory)\${{parameters.artifactName}}.zip' - replaceExistingArchive: true - - - task: PublishBuildArtifacts@1 - inputs: - pathtoPublish: '$(Build.ArtifactStagingDirectory)\${{parameters.artifactName}}.zip' - artifactName: 'drop-${{parameters.artifactName}}' diff --git a/tools/ci_build/github/azure-pipelines/templates/linux-set-variables-and-download.yml b/tools/ci_build/github/azure-pipelines/templates/linux-set-variables-and-download.yml deleted file mode 100644 index f9f6eae0fb..0000000000 --- a/tools/ci_build/github/azure-pipelines/templates/linux-set-variables-and-download.yml +++ /dev/null @@ -1,13 +0,0 @@ -steps: - -- task: CmdLine@2 - displayName: 'Clean untagged docker images' - inputs: - script: | - docker rm $(docker ps -a | grep Exited | awk '{print $1;}') || true - docker container prune -f - docker image prune -f - workingDirectory: $(Build.BinariesDirectory) - continueOnError: true - condition: always() - diff --git a/tools/ci_build/github/azure-pipelines/templates/mac-esrp-dll.yml b/tools/ci_build/github/azure-pipelines/templates/mac-esrp-dll.yml deleted file mode 100644 index 008ab59e91..0000000000 --- a/tools/ci_build/github/azure-pipelines/templates/mac-esrp-dll.yml +++ /dev/null @@ -1,45 +0,0 @@ -parameters: - FolderPath: '' - DisplayName: '' - DoEsrp: 'false' - Pattern: '*.dll' - -steps: -- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@2 - displayName: ${{ parameters.DisplayName }} - inputs: - ConnectedServiceName: 'OnnxRuntime CodeSign 20190817' - FolderPath: ${{ parameters.FolderPath }} - Pattern: ${{ parameters.Pattern }} - signConfigType: inlineSignParams - inlineOperation: | - [ - { - "keyCode": "CP-230012", - "operationSetCode": "SigntoolSign", - "parameters": [ - { - "parameterName": "OpusName", - "parameterValue": "Microsoft" - }, - { - "parameterName": "OpusInfo", - "parameterValue": "http://www.microsoft.com" - }, - { - "parameterName": "PageHash", - "parameterValue": "/NPH" - }, - { - "parameterName": "FileDigest", - "parameterValue": "/fd sha256" - }, - { - "parameterName": "TimeStamp", - "parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256" - } - ], - "toolName": "signtool", - "toolVersion": "6.2.9304.0" - } - ] diff --git a/tools/ci_build/github/azure-pipelines/templates/set-test-data-variables-step.yml b/tools/ci_build/github/azure-pipelines/templates/set-test-data-variables-step.yml deleted file mode 100644 index abec88edb1..0000000000 --- a/tools/ci_build/github/azure-pipelines/templates/set-test-data-variables-step.yml +++ /dev/null @@ -1,11 +0,0 @@ -# sets variables $(TestDataUrl) - -parameters: - TestDataUrl: https://onnxruntimetestdata.blob.core.windows.net/models/20191107.zip - -steps: -- task: CmdLine@1 - displayName: 'Set TestDataUrl variable' - inputs: - filename: echo - arguments: '##vso[task.setvariable variable=TestDataUrl;]${{parameters.TestDataUrl}}' \ No newline at end of file diff --git a/tools/ci_build/github/azure-pipelines/templates/windows-build-and-test-steps.yml b/tools/ci_build/github/azure-pipelines/templates/windows-build-and-test-steps.yml deleted file mode 100644 index aebc170e22..0000000000 --- a/tools/ci_build/github/azure-pipelines/templates/windows-build-and-test-steps.yml +++ /dev/null @@ -1,41 +0,0 @@ -# Runs various windows builds and tests, then publish test results - -parameters: - buildAdditionalParams: '' - msbuildPlatform: 'x64' - buildArch: 'x64' - buildConfig: 'RelWithDebInfo' - -steps: - - task: CmdLine@2 - displayName: 'Download test data and generate cmake config' - inputs: - script: | - $(Build.BinariesDirectory)\packages\python\python.exe $(Build.SourcesDirectory)\tools\ci_build\build.py --config ${{parameters.buildConfig}} --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --build_shared_lib --cmake_path $(Build.BinariesDirectory)\cmake\bin\cmake.exe --ctest_path $(Build.BinariesDirectory)\cmake\bin\ctest.exe --enable_onnx_tests --update ${{parameters.buildAdditionalParams}} - workingDirectory: '$(Build.BinariesDirectory)' - - - task: VSBuild@1 - displayName: 'Build ${{parameters.buildConfig}}' - inputs: - solution: '$(Build.BinariesDirectory)\${{parameters.buildConfig}}\onnxruntime.sln' - platform: '${{parameters.msbuildPlatform}}' - configuration: '${{parameters.buildConfig}}' - msbuildArgs: '/m' - msbuildArchitecture: $(buildArch) - logProjectEvents: true - workingFolder: '$(Build.BinariesDirectory)\${{parameters.buildConfig}}' - - - task: BatchScript@1 - displayName: 'Test ${{parameters.buildConfig}}' - inputs: - filename: '$(Build.BinariesDirectory)\packages\python\python.exe' - arguments: '$(Build.SourcesDirectory)\tools\ci_build\build.py --config ${{parameters.buildConfig}} --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --cmake_path $(Build.BinariesDirectory)\cmake\bin\cmake.exe --ctest_path $(Build.BinariesDirectory)\cmake\bin\ctest.exe --build_shared_lib --enable_onnx_tests --test ${{parameters.buildAdditionalParams}}' - workingFolder: '$(Build.BinariesDirectory)' - - - task: PublishTestResults@2 - displayName: 'Publish unit test results' - inputs: - testResultsFiles: '**\*.results.xml' - searchFolder: '$(Build.BinariesDirectory)' - testRunTitle: 'Unit Test Run' - condition: succeededOrFailed() diff --git a/tools/ci_build/github/azure-pipelines/templates/windows-build-tools-setup-steps.yml b/tools/ci_build/github/azure-pipelines/templates/windows-build-tools-setup-steps.yml deleted file mode 100644 index aa8e66f2fb..0000000000 --- a/tools/ci_build/github/azure-pipelines/templates/windows-build-tools-setup-steps.yml +++ /dev/null @@ -1,62 +0,0 @@ -# sets up common build tools for the windows build machines before build - -parameters: - EnvSetupScript: '' - DoDataDownload: true -steps: - - task: NuGetToolInstaller@0 - displayName: Use Nuget 5.7.0 - inputs: - versionSpec: 5.7.0 - # - 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 -y setuptools wheel numpy' - timeoutInMinutes: 10 - - - - 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"'