From 802c4120ea9012bbf7c1a18e95c68015027c7e91 Mon Sep 17 00:00:00 2001 From: Peter Collins Date: Sun, 29 Aug 2021 07:59:14 -0400 Subject: [PATCH] [ci] Opt in to symbol archiving during VS insertion (#12547) (#12575) Context: https://github.com/xamarin/yaml-templates/pull/131 Enables conversion and archiving of symbol files during the VS insertion stage. Symbol archiving steps will only run if both the `symbolArtifactName` parameter is provided, and `archiveSymbols` is set to true. The `symbolConversionFilters` parameter can be used to filter out paths of symbol files that should not be converted/archived. Co-authored-by: Rolf Bjarne Kvinge Co-authored-by: Rolf Bjarne Kvinge Co-authored-by: Alex Soto --- msbuild/Makefile | 1 + .../Xamarin.iOS.Tasks.Windows.csproj | 2 ++ src/Makefile.generator | 1 + src/bgen/bgen.csproj | 3 ++- .../automation/templates/release/vs-insertion-prep.yml | 7 +++++++ 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/msbuild/Makefile b/msbuild/Makefile index cda5970385af..71aae5d61fda 100644 --- a/msbuild/Makefile +++ b/msbuild/Makefile @@ -479,6 +479,7 @@ MSBUILD_PRODUCTS += $(DOTNET_TARGETS) DOTNET_IOS_WINDOWS_OUTPUT_FILES = \ $(foreach dll,$(IOS_WINDOWS_TASK_ASSEMBLIES),$(dll).*) \ $(foreach dll,$(IOS_WINDOWS_DEPENDENCIES),$(dll).*) \ + System.Diagnostics.Tracer.pdb \ Broker.zip \ Build.zip \ Xamarin.PreBuilt.iOS.app.zip diff --git a/msbuild/Xamarin.iOS.Tasks.Windows/Xamarin.iOS.Tasks.Windows.csproj b/msbuild/Xamarin.iOS.Tasks.Windows/Xamarin.iOS.Tasks.Windows.csproj index 93284400e5f4..e02676e3f0c7 100644 --- a/msbuild/Xamarin.iOS.Tasks.Windows/Xamarin.iOS.Tasks.Windows.csproj +++ b/msbuild/Xamarin.iOS.Tasks.Windows/Xamarin.iOS.Tasks.Windows.csproj @@ -13,6 +13,7 @@ + @@ -33,6 +34,7 @@ Xamarin.PreBuilt.iOS.app.zip PreserveNewest + diff --git a/src/Makefile.generator b/src/Makefile.generator index e31d77f81595..410e85ae1a93 100644 --- a/src/Makefile.generator +++ b/src/Makefile.generator @@ -29,6 +29,7 @@ $(DOTNET_DESTDIR)/%.Sdk/tools/bin/bgen: bgen/bgen.dotnet | $(DOTNET_DESTDIR)/%.S $(DOTNET_DESTDIR)/%.Sdk/tools/lib/Xamarin.Apple.BindingAttributes.dll: $(DOTNET_BUILD_DIR)/Xamarin.Apple.BindingAttributes.dll | $(DOTNET_DESTDIR)/%.Sdk/tools/lib $(Q) $(CP) $< $@ + $(Q) $(CP) $(<:.dll=.pdb) $(@:.dll=.pdb) DOTNET_TARGETS += \ $(DOTNET_BUILD_DIR)/bgen/bgen \ diff --git a/src/bgen/bgen.csproj b/src/bgen/bgen.csproj index 75ed8f728018..794d7102923c 100644 --- a/src/bgen/bgen.csproj +++ b/src/bgen/bgen.csproj @@ -8,7 +8,7 @@ - + @@ -68,6 +68,7 @@ SdkVersions.cs + diff --git a/tools/devops/automation/templates/release/vs-insertion-prep.yml b/tools/devops/automation/templates/release/vs-insertion-prep.yml index 9fef3ab565ab..8463af50214b 100644 --- a/tools/devops/automation/templates/release/vs-insertion-prep.yml +++ b/tools/devops/automation/templates/release/vs-insertion-prep.yml @@ -78,4 +78,11 @@ stages: - template: vs-insertion/stage/v1.yml@templates parameters: dependsOn: prepare_release + symbolArtifactName: nuget-signed + symbolArtifactPatterns: | + Microsoft.NET.Sdk.iOS.Manifest*.nupkg + Microsoft.NET.Sdk.MacCatalyst.Manifest*.nupkg + Microsoft.iOS*.nupkg + Microsoft.MacCatalyst*.nupkg + symbolConversionFilters: '*mlaunch.app*' condition: eq(variables.IsPRBuild, 'False')