Skip to content

Commit

Permalink
Publish Build Symbols for DML nightly nuget package (#20988)
Browse files Browse the repository at this point in the history
### Description
Publish Build Symbols for DML nightly nuget package.
  • Loading branch information
snnn committed Jun 11, 2024
1 parent dc545d3 commit ae4a2e6
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,14 @@ stages:
artifactName: ${{ parameters.ArtifactName }}
targetPath: '$(Build.ArtifactStagingDirectory)'

- ${{ if eq(parameters['IsReleaseBuild'], 'true') }}:
- task: PublishSymbols@2
displayName: 'Publish Build Symbols'
inputs:
symbolsFolder: '$(Build.BinariesDirectory)\RelWithDebInfo\RelWithDebInfo'
searchPattern: '**/*.pdb'
symbolServerType: teamServices


- task: PublishSymbols@2
displayName: 'Publish Build Symbols'
condition: and (succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/rel-')))
inputs:
SymbolsFolder: '$(Build.BinariesDirectory)\RelWithDebInfo\RelWithDebInfo'
SearchPattern: 'onnxruntime.pdb'
SymbolServerType: teamServices
SymbolExpirationInDays: 365

# Node.js Publish
- ${{ if eq(parameters['DoNodejsPack'], 'true') }}:
Expand Down

0 comments on commit ae4a2e6

Please sign in to comment.