From fa6d0350904da7d1496a7cdf85aef9ca9f7bf3f9 Mon Sep 17 00:00:00 2001 From: Sheil Kumar Date: Wed, 22 Jul 2020 10:53:47 -0700 Subject: [PATCH] Create WindowsAI zip files automatically as part of the pipeline (#4584) * copy rename nupkg to zip as part of build task * update both symbols and regular package Co-authored-by: Sheil Kumar --- .../github/azure-pipelines/nuget/templates/windowsai.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/ci_build/github/azure-pipelines/nuget/templates/windowsai.yml b/tools/ci_build/github/azure-pipelines/nuget/templates/windowsai.yml index 0a87019ba3..1d9953b18d 100644 --- a/tools/ci_build/github/azure-pipelines/nuget/templates/windowsai.yml +++ b/tools/ci_build/github/azure-pipelines/nuget/templates/windowsai.yml @@ -200,6 +200,7 @@ jobs: } $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)) { @@ -210,6 +211,8 @@ jobs: 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 @@ -270,6 +273,7 @@ jobs: } $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)) { @@ -280,6 +284,8 @@ jobs: 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