From 72cc72cc21249bfa91c6564edc341e3aa881e542 Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Sun, 13 Oct 2024 08:30:06 +0800 Subject: [PATCH] New rocm nuget publish pipeline (#22418) ### Description Add a new pipeline to publish ROCM package to ADO ### Motivation and Context ### Test Link https://dev.azure.com/aiinfra/Lotus/_build?definitionId=1615 --- .../rocm-nuget-packaging-pipeline.yml | 11 ---------- .../rocm-publish-nuget-pipeline.yml | 21 +++++++++++++++++++ 2 files changed, 21 insertions(+), 11 deletions(-) create mode 100644 tools/ci_build/github/azure-pipelines/rocm-publish-nuget-pipeline.yml diff --git a/tools/ci_build/github/azure-pipelines/rocm-nuget-packaging-pipeline.yml b/tools/ci_build/github/azure-pipelines/rocm-nuget-packaging-pipeline.yml index f4022a80b0568..bdb8c942f72c4 100644 --- a/tools/ci_build/github/azure-pipelines/rocm-nuget-packaging-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/rocm-nuget-packaging-pipeline.yml @@ -340,14 +340,3 @@ stages: SpecificArtifact: ${{ parameters.specificArtifact }} CustomOpArtifactName: 'onnxruntime-linux-x64-rocm' BuildId: ${{ parameters.BuildId }} - -- template: templates/publish-nuget-steps.yml - parameters: - download_artifacts_steps: - - template: templates/flex-downloadPipelineArtifact.yml - parameters: - StepName: 'Download Pipeline Artifact - Signed NuGet ROCm Package' - ArtifactName: 'drop-signed-nuget-ROCm' - targetPath: '$(Build.BinariesDirectory)/nuget-artifact/final-package' - SpecificArtifact: ${{ parameters.specificArtifact }} - BuildId: ${{ parameters.BuildId }} diff --git a/tools/ci_build/github/azure-pipelines/rocm-publish-nuget-pipeline.yml b/tools/ci_build/github/azure-pipelines/rocm-publish-nuget-pipeline.yml new file mode 100644 index 0000000000000..1d2393d8f96d5 --- /dev/null +++ b/tools/ci_build/github/azure-pipelines/rocm-publish-nuget-pipeline.yml @@ -0,0 +1,21 @@ +resources: + pipelines: + - pipeline: build + source: 'Nuget ROCM Packaging pipeline' + trigger: + branches: + include: + - main + - rel-* + branch: main + +# ROCm +stages: +- template: templates/publish-nuget-steps.yml + parameters: + stage_name: 'Publish_ROCM_NuGet_Package' + download_artifacts_steps: + - download: build + displayName: 'Download Pipeline Artifact - Signed NuGet Package' + artifact: 'drop-signed-nuget-ROCm' + - script: move "$(Pipeline.Workspace)\build\drop-signed-nuget-ROCm\*" $(Build.BinariesDirectory)\nuget-artifact\final-package