-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate Zip-Nuget Package Pipeline to 1ES #23609
Open
jchen351
wants to merge
45
commits into
main
Choose a base branch
from
Cjian/zip-nug
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+462
−395
Open
Changes from 40 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
702ed1c
Migrate Zip-Nuget Package Pipeline to 1ES
jchen351 d9dda06
Migrate Zip-Nuget Package Pipeline to 1ES
jchen351 0469e15
Migrate Zip-Nuget Package Pipeline to 1ES
jchen351 33e6ebf
Migrate Zip-Nuget Package Pipeline to 1ES
jchen351 9efa0b4
Migrate Zip-Nuget Package Pipeline to 1ES
jchen351 361c41e
Try to skip ESRP
jchen351 5cf3f47
Try to skip validate-package.yml
jchen351 60749a2
Try to skip validate-package.yml
jchen351 f9aa616
Try to skip validate-package.yml
jchen351 6e45a7b
Try to skip validate-package.yml
jchen351 39ab306
publish
jchen351 7e22fb6
1ES
jchen351 05dae73
Disable dml
jchen351 7711069
Disable nuget-combine-cuda-stage.yml
jchen351 471f287
Disable c-api-cpu.yml
jchen351 41f2aa3
Disable java-cuda-packaging-stage.yml
jchen351 1b3dcc8
Update c-api-cpu.yml
jchen351 de9ce65
Disable c-api-cpu.yml
jchen351 faa38bf
Binary c-api-cpu.yml
jchen351 165d968
Binary c-api-cpu.yml 2
jchen351 10355d7
Binary c-api-cpu.yml 2
jchen351 27eadb1
Binary c-api-cpu.yml 2
jchen351 4bdec8e
Binary c-api-cpu.yml 3
jchen351 b16aac3
undo Binary c-api-cpu.yml 3
jchen351 073a6c5
undo Binary c-api-cpu.yml 3
jchen351 503b159
undo Binary c-api-cpu.yml 2
jchen351 7913042
undo Binary c-api-cpu.yml 1
jchen351 9746f1c
undo Binary c-api-cpu.yml 1.5
jchen351 bcb0652
undo Binary c-api-cpu.yml 1.75
jchen351 73b7200
undo Binary c-api-cpu.yml 1.5
jchen351 abb6848
undo Binary c-api-cpu.yml 1.25
jchen351 645f237
undo Binary c-api-cpu.yml 1.25
jchen351 3d8da4d
undo Binary c-api-cpu.yml 1
jchen351 979a1a7
undo dml-vs-2022.yml
jchen351 5108e87
undo dml-vs-2022.yml
jchen351 c17734e
onnxruntime-inference-examples
jchen351 7d2e988
undo binary
jchen351 8705d20
undo pool
jchen351 293d96f
undo templates
jchen351 58183eb
Adding a new stage
jchen351 0714630
Adding a new stage
jchen351 67c2221
Adding a new stage
jchen351 15347b8
Update os
jchen351 16c8269
Update os
jchen351 bb75778
Update os
jchen351 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
322 changes: 128 additions & 194 deletions
322
tools/ci_build/github/azure-pipelines/c-api-noopenmp-packaging-pipelines.yml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 99 additions & 0 deletions
99
tools/ci_build/github/azure-pipelines/stages/nuget_dml_packaging_stage.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
parameters: | ||
- name: DoEsrp | ||
type: boolean | ||
default: true | ||
|
||
stages: | ||
- stage: NuGet_Packaging_DML | ||
dependsOn: | ||
- Windows_CI_GPU_DML_Dev | ||
- Windows_CI_GPU_DML_Dev_x86 | ||
- Windows_CI_GPU_DML_Dev_arm64 | ||
condition: succeeded() | ||
jobs: | ||
- job: NuGet_Packaging_DML | ||
workspace: | ||
clean: all | ||
pool: 'onnxruntime-Win2022-GPU-dml-A10' | ||
steps: | ||
- task: DownloadPipelineArtifact@0 | ||
displayName: 'Download Pipeline Artifact - NuGet DirectML' | ||
inputs: | ||
artifactName: 'drop-nuget-dml' | ||
targetPath: '$(Build.BinariesDirectory)/nuget-artifact-dml' | ||
|
||
- task: DownloadPipelineArtifact@0 | ||
displayName: 'Download Pipeline Artifact - NuGet DirectML x86' | ||
inputs: | ||
artifactName: 'drop-win-dml-x86-zip' | ||
targetPath: '$(Build.BinariesDirectory)/nuget-artifact-dml' | ||
|
||
- task: DownloadPipelineArtifact@0 | ||
displayName: 'Download Pipeline Artifact - NuGet DirectML arm64' | ||
inputs: | ||
artifactName: 'drop-win-dml-arm64-zip' | ||
targetPath: '$(Build.BinariesDirectory)/nuget-artifact-dml' | ||
|
||
- script: | | ||
pushd $(Build.BinariesDirectory)\nuget-artifact-dml | ||
dir | ||
powershell -Command "Invoke-WebRequest http://stahlworks.com/dev/unzip.exe -OutFile unzip.exe" | ||
powershell -Command "Invoke-WebRequest http://stahlworks.com/dev/zip.exe -OutFile zip.exe" | ||
set PATH=%CD%;%PATH% | ||
SETLOCAL EnableDelayedExpansion | ||
FOR /R %%i IN (*.nupkg) do ( | ||
set filename=%%~ni | ||
IF NOT "!filename:~25,7!"=="Managed" ( | ||
rename %%~ni.nupkg %%~ni.zip | ||
unzip %%~ni.zip -d %%~ni | ||
del /Q %%~ni.zip | ||
unzip win-dml-x86.zip -d win-x86 | ||
mkdir %%~ni\runtimes\win-x86 | ||
mkdir %%~ni\runtimes\win-x86\native | ||
move win-x86\runtimes\win-x86\native\onnxruntime.dll %%~ni\runtimes\win-x86\native\onnxruntime.dll | ||
move win-x86\runtimes\win-x86\native\onnxruntime.lib %%~ni\runtimes\win-x86\native\onnxruntime.lib | ||
move win-x86\runtimes\win-x86\native\onnxruntime.pdb %%~ni\runtimes\win-x86\native\onnxruntime.pdb | ||
unzip win-dml-arm64.zip -d win-arm64 | ||
mkdir %%~ni\runtimes\win-arm64 | ||
mkdir %%~ni\runtimes\win-arm64\native | ||
move win-arm64\runtimes\win-arm64\native\onnxruntime.dll %%~ni\runtimes\win-arm64\native\onnxruntime.dll | ||
move win-arm64\runtimes\win-arm64\native\onnxruntime.lib %%~ni\runtimes\win-arm64\native\onnxruntime.lib | ||
move win-arm64\runtimes\win-arm64\native\onnxruntime.pdb %%~ni\runtimes\win-arm64\native\onnxruntime.pdb | ||
pushd %%~ni | ||
zip -r ..\%%~ni.zip . | ||
popd | ||
move %%~ni.zip %%~ni.nupkg | ||
) | ||
) | ||
popd | ||
copy $(Build.BinariesDirectory)\nuget-artifact-dml\Microsoft.ML.OnnxRuntime.DirectML*nupkg $(Build.ArtifactStagingDirectory) | ||
displayName: 'Bundle DML NuGet and other binaries' | ||
- template: ../templates/esrp_nuget.yml | ||
parameters: | ||
DisplayName: 'ESRP - sign NuGet package' | ||
FolderPath: '$(Build.ArtifactStagingDirectory)' | ||
DoEsrp: ${{ parameters.DoEsrp }} | ||
|
||
- template: ../templates/validate-package.yml | ||
parameters: | ||
PackageType: 'nuget' | ||
PackagePath: '$(Build.ArtifactStagingDirectory)' | ||
PackageName: 'Microsoft.ML.OnnxRuntime.DirectML*nupkg' | ||
PlatformsSupported: 'win-x64,win-x86,win-arm64' | ||
VerifyNugetSigning: ${{ parameters.DoEsrp }} | ||
|
||
- task: 1ES.PublishPipelineArtifact@1 | ||
displayName: 'Publish Pipeline NuGet Artifact' | ||
inputs: | ||
artifactName: 'drop-signed-nuget-dml' | ||
targetPath: '$(Build.ArtifactStagingDirectory)' | ||
- template: ../templates/component-governance-component-detection-steps.yml | ||
parameters: | ||
condition: 'succeeded' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1ES.Official.PipelineTemplate.yml@1esPipelines doesn't allow multiple level of -templates. That is why I move this stage into its own file