From 77a7628585b8f52970455233344ef3a9ce7c9bcb Mon Sep 17 00:00:00 2001 From: Nikola Milosavljevic Date: Thu, 5 Oct 2023 23:43:12 -0700 Subject: [PATCH] Source-build symbols repackaging (#17454) Co-authored-by: Michael Simons --- eng/pipelines/templates/jobs/vmr-build.yml | 2 +- src/SourceBuild/content/build.proj | 82 +++++++++- .../CreateSdkSymbolsLayout.cs | 154 ++++++++++++++++++ 3 files changed, 236 insertions(+), 2 deletions(-) create mode 100644 src/SourceBuild/content/eng/tools/tasks/Microsoft.DotNet.SourceBuild.Tasks.XPlat/CreateSdkSymbolsLayout.cs diff --git a/eng/pipelines/templates/jobs/vmr-build.yml b/eng/pipelines/templates/jobs/vmr-build.yml index 041a47580..f11af8c4b 100644 --- a/eng/pipelines/templates/jobs/vmr-build.yml +++ b/eng/pipelines/templates/jobs/vmr-build.yml @@ -127,7 +127,7 @@ jobs: artifact: ${{ parameters.reuseBuildArtifactsFrom }}_${{ parameters.architecture }}_Artifacts patterns: | **/Private.SourceBuilt.Artifacts.*.tar.gz - **/dotnet-sdk-*.tar.gz + **/dotnet-sdk-+([0-9]).+([0-9]).+([0-9])*.tar.gz displayName: Download Previous Build - task: CopyFiles@2 diff --git a/src/SourceBuild/content/build.proj b/src/SourceBuild/content/build.proj index 55e5a66c0..6b67024d0 100644 --- a/src/SourceBuild/content/build.proj +++ b/src/SourceBuild/content/build.proj @@ -4,6 +4,7 @@ + @@ -57,6 +58,84 @@ + + + + + + + + + + $([System.IO.Path]::GetFileName('%(SymbolsTarball.Identity)')) + $(Filename.Split('.')[1]) + $(ArtifactsTmpDir)Symbols + $(UnifiedSymbolsLayout)/$(RepositoryName) + + + + + + + + + + + + $(OutputPath)dotnet-symbols-$(MicrosoftSourceBuildIntermediateInstallerVersion)-$(TargetRid).tar.gz + + + + + + + + + + + + + + + $(ArtifactsTmpDir)SdkSymbols + $(OutputPath)dotnet-sdk-symbols-$(MicrosoftSourceBuildIntermediateInstallerVersion)-$(TargetRid).tar.gz + $(ArtifactsTmpDir)Sdk + %(SdkTarballItem.Identity) + + + + + + + + + + + + + + + +