Publish gpu package to nuget feed (#3816)

This commit is contained in:
Changming Sun 2020-05-04 21:49:19 -07:00 committed by GitHub
parent b386b41703
commit c11fbf68e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'