mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-29 23:06:41 +00:00
Publish gpu package to nuget feed (#3816)
This commit is contained in:
parent
b386b41703
commit
c11fbf68e4
1 changed files with 30 additions and 1 deletions
|
|
@ -236,4 +236,33 @@ jobs:
|
|||
- template: test_linux.yml
|
||||
parameters:
|
||||
AgentPool : 'Linux-GPU-CUDA10'
|
||||
TestGPU : 'true'
|
||||
TestGPU : 'true'
|
||||
|
||||
- job: Publish_NuGet_Package_And_Report
|
||||
workspace:
|
||||
clean: all
|
||||
pool: 'Win-CPU-2019'
|
||||
condition: and (succeeded(), and (${{ parameters.DoEsrp }}, eq(variables['Build.SourceBranch'], 'refs/heads/master')))
|
||||
dependsOn:
|
||||
- NuGet_Test_Win
|
||||
- NuGet_Test_Linux
|
||||
steps:
|
||||
- template: ../../templates/set-version-number-variables-step.yml
|
||||
|
||||
- task: DownloadPipelineArtifact@0
|
||||
displayName: 'Download Pipeline Artifact - Signed NuGet Package'
|
||||
inputs:
|
||||
artifactName: 'drop-signed-nuget'
|
||||
targetPath: $(Build.BinariesDirectory)/nuget-artifact/final-package
|
||||
|
||||
- template: get-nuget-package-version-as-variable.yml
|
||||
parameters:
|
||||
packageFolder: '$(Build.BinariesDirectory)/nuget-artifact/final-package'
|
||||
|
||||
- task: DotNetCoreCLI@2
|
||||
displayName: 'Copy Signed Native NuGet Package to Internal NuGet Feed'
|
||||
condition: ne(variables['IsReleaseBuild'], 'true') # release build has a different package naming scheme
|
||||
inputs:
|
||||
command: 'push'
|
||||
searchPatternPush: '$(Build.BinariesDirectory)/nuget-artifact/final-package/Microsoft.ML.OnnxRuntime.Gpu.$(NuGetPackageVersionNumber).nupkg'
|
||||
feedPublish: 'OnnxRuntime'
|
||||
|
|
|
|||
Loading…
Reference in a new issue