-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Migrate Zip-Nuget Package Pipeline to 1ES #23609
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
Merged
Merged
Changes from all commits
Commits
Show all changes
164 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 3737846
Change the build artifact to pipeline artifact.
jchen351 1176c96
Change hostArchitecture to arm64 for aarch64
jchen351 cf2ba46
Change hostArchitecture to arm64 for aarch64
jchen351 b79f955
Update Onnxruntime-Linux-GPU to Onnxruntime-Linux-GPU-A10
jchen351 9ee4593
${{ if eq(parameters.OnnxruntimeArch, 'aarch64') }}:
jchen351 bd6e298
Use 'Onnxruntime-Linux-GPU-A10' for now until we more the testing off…
jchen351 6c314f1
Make Cuda packaging pipeline 1ES compliant
jchen351 4811406
Make Cuda packaging pipeline 1ES compliant
jchen351 737a619
Make Cuda packaging pipeline 1ES compliant
jchen351 2d22d64
Make Cuda packaging pipeline 1ES compliant
jchen351 2ba2be2
Make Cuda packaging pipeline 1ES compliant
jchen351 4ace5d5
Make Cuda packaging pipeline 1ES compliant
jchen351 fdd6bce
Make Cuda packaging pipeline 1ES compliant
jchen351 2c7440e
Make Cuda packaging pipeline 1ES compliant
jchen351 00671bc
Make Cuda packaging pipeline 1ES compliant
jchen351 a64d94f
download-java-tools-stage.yml
jchen351 e469083
download-java-tools-stage.yml
jchen351 88c9db6
sourceRepositoriesToScan:
jchen351 19a510a
onnxruntime-Win-CPU-2022
jchen351 bb9b125
Merge branch 'main' into Cjian/1es_zip_cuda
jchen351 116c4c2
Merge branch 'main' into Cjian/1es_zip_cuda
jchen351 d73b0e8
onnxruntime-Win-CPU-2022
jchen351 3cd94b8
onnxruntime-Win-CPU-2022
jchen351 3d5b65f
Merge branch 'Cjian/1es_zip_cuda' into Cjian/zip-nug
jchen351 1924a65
Merge branch 'refs/heads/main' into Cjian/zip-nug
jchen351 cb4d313
merge with main
jchen351 e1e528e
target Path
jchen351 b1bf0cd
Fix identation
jchen351 266d588
Fix identation
jchen351 dde1eaf
Fix identation
jchen351 7f50d2c
Test on android-java-api-aar.yml
jchen351 9fdf425
Revert Test on android-java-api-aar.yml
jchen351 153ad78
'onnxruntime-Win-CPU-2022'
jchen351 4d5cf6f
'Onnxruntime-Win-CPU-2022'
jchen351 1528a7c
'Onnxruntime-Win-CPU-2022'
jchen351 04797aa
onnxruntime-Win-CPU-2022
jchen351 aadf038
Onnxruntime-Win-CPU-2022
jchen351 3a7c0a9
Onnxruntime-Win-CPU-2022
jchen351 e39f6c5
rolling back c-api-cpu.yml
jchen351 24372a6
rolling back c-api-cpu.yml
jchen351 158bb2d
is1ES: ${{ parameters.is1ES }}
jchen351 1c0e431
name:'onnxruntime-Win-CPU-2022'
jchen351 00e17d6
name:'onnxruntime-Win-CPU-2022'
jchen351 b2604c0
set is1ES parameter on java-api-artifacts-package-and-publish-steps-p…
jchen351 8a26501
Merge branch 'Cjian/1es_zip_cuda' into Cjian/zip-nug
jchen351 5059edb
set is1ES parameter c-api-linux-cpu.yml and linux-cpu-packaging-pipel…
jchen351 06280a1
set is1ES parameter c-api-linux-cpu.yml and linux-cpu-packaging-pipel…
jchen351 4980082
Merge branch 'Cjian/1es_zip_cuda' into Cjian/zip-nug
jchen351 b391346
linux-cpu-packaging-pipeline.yml is1ES
jchen351 99a07d8
linux-cpu-packaging-pipeline.yml is1ES
jchen351 f5f169b
PublishPipelineArtifact
jchen351 c1476bf
1ES.PublishPipelineArtifact@1 default on java-api-artifacts-package-a…
jchen351 dd1a084
pool:
jchen351 0a71688
fix c-api-linux-cpu.yml
jchen351 d2f4973
Fix RN CI
jchen351 f7e3421
Merge branch 'main' into Cjian/1es_zip_cuda
jchen351 5c3b980
Update os and arch
jchen351 a01a2b3
Update GPU Pool
jchen351 807d7f6
Remove DoCompliant
jchen351 420df51
Merge branch 'Cjian/1es_zip_cuda' into Cjian/zip-nug
jchen351 b579a6e
Remove DoCompliant
jchen351 9dd530a
Remove DoCompliant
jchen351 3bfaef3
Merge branch 'Cjian/1es_zip_cuda' into Cjian/zip-nug
jchen351 ddea85c
Remove DoCompliant
jchen351 7dec97b
Disable SpotBugs
jchen351 e3a0f3f
diable SpotBugs
jchen351 6ea565a
final-jar-testing.yml
jchen351 25310ea
Merge branch 'Cjian/1es_zip_cuda' into Cjian/zip-nug
jchen351 c1a152d
final-jar-testing.yml
jchen351 bf0cc4e
Merge branch 'Cjian/1es_zip_cuda' into Cjian/zip-nug
jchen351 f99e29a
Merge branch 'main' into Cjian/zip-nug
jchen351 3750409
Update set_packaging_variables_stage.yml
jchen351 8649238
Update set_packaging_variables_stage.yml
jchen351 0780b89
Update set_packaging_variables_stage.yml
jchen351 57dbd84
Update set_packaging_variables_stage.yml
jchen351 e7a3f0d
Update name: 'onnxruntime-Ubuntu2204-AMD-CPU'
jchen351 040c0b5
BimSkin Exclude exe files
jchen351 0a7fa01
Set pool name and os
jchen351 0a2957a
Set pool name and os
jchen351 4e31c2d
Fix a typo
jchen351 c9096ea
Merge branch 'main' into Cjian/zip-nug
jchen351 c03ebe1
Merge branch 'main' into Cjian/1es_zip_cuda
jchen351 18065e0
Update download folder in TEst package Installing
jchen351 b5ad18e
Update download folder in TEst package Installing
jchen351 212e135
targetPathExclusionPattern: '\".*\.exe\"'
jchen351 65d148e
targetPathExclusionPattern: '\".*\.exe\"'
jchen351 82c19cd
Merge remote-tracking branch 'origin/main' into Cjian/1es_zip_cuda
jchen351 342a8a0
**
jchen351 c5734d8
**
jchen351 5ceb20f
AnalyzeTargetGlobs: $(Build.ArtifactStagingDirectory)/**.dll
jchen351 ef9b475
AnalyzeTargetGlob: -:f|**\*.exe
jchen351 1c14efc
AnalyzeTargetGlob: -:f|**\*.exe
jchen351 fc2d695
AnalyzeTargetGlob: -:f|**\*.exe
jchen351 c371484
$(Build.ArtifactStagingDirectory)/**.dll
jchen351 fc101fc
$(Build.ArtifactStagingDirectory)/**.dll
jchen351 a05ec7e
Update pool os
jchen351 fb64235
Merge with main
jchen351 da2b3d4
Merge with main
jchen351 0312a81
Merge branch 'Cjian/1es_zip_cuda' into Cjian/zip-nug
jchen351 36a681f
Update target path
jchen351 05dd42e
Merge branch 'Cjian/1es_zip_cuda' into Cjian/zip-nug
jchen351 7a4edfc
docker run -e SYSTEM_COLLECTIONURI --rm \
jchen351 11a46b1
Merge branch 'Cjian/1es_zip_cuda' into Cjian/zip-nug
jchen351 867b038
Merge branch 'main' into Cjian/zip-nug
jchen351 f57078a
Fix node artifact path
jchen351 e54bbcc
is 1ES to java-api-artifacts-package-and-publish-steps-posix.yml
jchen351 f3aa328
is 1ES to java-api-artifacts-package-and-publish-steps-posix.yml
jchen351 5af2e98
revert tools/ci_build/github/azure-pipelines/templates/linux-cpu-pack…
jchen351 3f26796
Update NodeTool
jchen351 a708b08
Update NodeTool
jchen351 e7b55dd
mege with main
jchen351 f221598
Remove macos pool
jchen351 65dfd5f
Merge branch 'main' into Cjian/zip-nug
jchen351 888867a
Merge branch 'main' into Cjian/zip-nug
jchen351 9375151
--no_kleidiai
jchen351 ffdd916
Merge branch 'main' into Cjian/zip-nug
jchen351 8a16f92
--no_kleidiai
jchen351 eb739fc
Merge branch 'refs/heads/main' into Cjian/zip-nug
jchen351 174efe8
Merge with main
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
This file contains hidden or 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
324 changes: 125 additions & 199 deletions
324
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.