mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Move on-device training packages publish step (#21539)
### Description Since the onedevice training cpu packaging has been a separated pipeline, it's nuget package publishing step must be moved as well. ### Motivation and Context Fixes the exception in Nuget Publishing Packaging Pipeline caused by #21485
This commit is contained in:
parent
d8888136e3
commit
05cef469e8
2 changed files with 26 additions and 8 deletions
|
|
@ -32,13 +32,25 @@ parameters:
|
|||
displayName: Number added to pre-release package version. Only used if IsReleaseBuild is true. Denotes the sequence of a pre-release package.
|
||||
type: number
|
||||
default: 0
|
||||
|
||||
|
||||
# these 2 parameters are used for debugging.
|
||||
- name: SpecificArtifact
|
||||
displayName: Use Specific Artifact (Debugging only)
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
- name: BuildId
|
||||
displayName: Pipeline BuildId, you could find it in the URL
|
||||
type: string
|
||||
default: '0'
|
||||
|
||||
stages:
|
||||
- template: stages/set_packaging_variables_stage.yml
|
||||
parameters:
|
||||
IsReleaseBuild: ${{ parameters.IsReleaseBuild }}
|
||||
PreReleaseVersionSuffixString: ${{ parameters.PreReleaseVersionSuffixString }}
|
||||
PreReleaseVersionSuffixNumber: ${{ parameters.PreReleaseVersionSuffixNumber }}
|
||||
|
||||
- template: templates/ondevice-training-cpu-packaging-pipeline.yml
|
||||
parameters:
|
||||
RunOnnxRuntimeTests: ${{ parameters.RunOnnxRuntimeTests }}
|
||||
|
|
@ -48,4 +60,15 @@ stages:
|
|||
OrtNugetPackageId: 'Microsoft.ML.OnnxRuntime.Training'
|
||||
AdditionalBuildFlags: '--enable_training_apis'
|
||||
AdditionalWinBuildFlags: '--enable_onnx_tests --enable_wcos'
|
||||
BuildVariant: 'default'
|
||||
BuildVariant: 'default'
|
||||
|
||||
- template: templates/publish-nuget-steps.yml
|
||||
parameters:
|
||||
download_artifacts_steps:
|
||||
- template: templates/flex-downloadPipelineArtifact.yml
|
||||
parameters:
|
||||
StepName: 'Download Pipeline Artifact - Signed NuGet Training Package'
|
||||
ArtifactName: 'drop-signed-nuget-Training-CPU'
|
||||
targetPath: '$(Build.BinariesDirectory)/nuget-artifact/final-package'
|
||||
SpecificArtifact: ${{ parameters.specificArtifact }}
|
||||
BuildId: ${{ parameters.BuildId }}
|
||||
|
|
|
|||
|
|
@ -32,11 +32,6 @@ stages:
|
|||
artifact: 'drop-signed-nuget-dml'
|
||||
- script: move "$(Pipeline.Workspace)\build\drop-signed-nuget-dml\*" $(Build.BinariesDirectory)\nuget-artifact\final-package
|
||||
|
||||
- download: build
|
||||
displayName: 'Download Pipeline Artifact - Signed NuGet Package'
|
||||
artifact: 'drop-signed-nuget-Training-CPU'
|
||||
- script: move "$(Pipeline.Workspace)\build\drop-signed-nuget-Training-CPU\*" $(Build.BinariesDirectory)\nuget-artifact\final-package
|
||||
|
||||
# Publish CUDA 11 Nuget/Java pkgs to ADO feed
|
||||
- template: stages/nuget-cuda-publishing-stage.yml
|
||||
parameters:
|
||||
|
|
@ -44,4 +39,4 @@ stages:
|
|||
|
||||
- template: stages/java-cuda-publishing-stage.yml
|
||||
parameters:
|
||||
artifact_feed: $(ArtifactFeed)
|
||||
artifact_feed: $(ArtifactFeed)
|
||||
|
|
|
|||
Loading…
Reference in a new issue