Skip to content

Commit

Permalink
Public Symbols Publishing New WorkFlow (#4311)
Browse files Browse the repository at this point in the history
* Publish Internally Only

* add parameter

* call
  • Loading branch information
kythant authored Apr 10, 2024
1 parent 68e2b54 commit 7469e4d
Showing 1 changed file with 18 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,26 +136,30 @@ stages:
# This ADO task does not support indexing of github sources currently :-(
indexSources: false
detailedLog: true
SymbolsArtifactName: $(symbolsArtifactName)
# There is a bug which causes this task to fail if LIB includes an inaccessible path (even though it does not depend on it).
# To work around this issue, we just force LIB to be any dir that we know exists.
env:
LIB: $(Build.SourcesDirectory)

- ${{ if eq(parameters.isOfficial, 'true') }}:
- task: PublishSymbols@2
displayName: 'Publish symbols to public server (without source indexing)'
# Publishing symbols publicly requires making an API call to the service and is handled by PublishPublicSymbols.ps1
# in eng/common
# See this page for more info:
# https://www.osgwiki.com/wiki/Symbols_Publishing_Pipeline_to_SymWeb_and_MSDL
- ${{ if eq(parameters.IsOfficial, 'true') }}:
- pwsh: |
Install-Module -Name Az.Accounts -Scope AllUsers -AllowClobber -Force
displayName: Install Az.Accounts PowerShell module
# WinAppSDK-AZSC service connection must be used because the service principal created by this connection has been granted read and publish access
- task: AzurePowerShell@5
displayName: Publish symbols to SymWeb and MSDL
inputs:
searchPattern: '$(Build.ArtifactStagingDirectory)\symbols\**\*.pdb'
symbolServerType: 'TeamServices'
# This ADO task does not support indexing of github sources currently :-(
indexSources: false
detailedLog: true
# # There is a bug which causes this task to fail if LIB includes an inaccessible path (even though it does not depend on it).
# # To work around this issue, we just force LIB to be any dir that we know exists.
Pat: $(WinAppSdkLabSymbolsPAT)
env:
LIB: $(Build.SourcesDirectory)
ArtifactServices_Symbol_AccountName: microsoftpublicsymbols
azureSubscription: 'WinAppSDK-AZSC'
ScriptType: 'InlineScript'
Inline: $(Build.SourcesDirectory)\eng\common\Scripts\PublishPublicSymbols.ps1 -RequestName "$(symbolsArtifactName)"
azurePowerShellVersion: 'LatestVersion'
pwsh: true

- task: PowerShell@2
name: SetVersion
Expand Down

0 comments on commit 7469e4d

Please sign in to comment.