mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-24 22:17:32 +00:00
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 <sheilk@microsoft.com>
This commit is contained in:
parent
6b53a74867
commit
fa6d035090
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue