ci: Add an explicit flag to retain Windows debugging artifacts

This commit is contained in:
Tyler Wilding
2021-05-26 15:07:26 +02:00
committed by lightningterror
parent 1bbc51c947
commit bfe0ba7e99
2 changed files with 7 additions and 1 deletions
+3
View File
@@ -65,6 +65,9 @@ jobs:
vs-version: 16.7
- name: Build PCSX2
env:
# Set to 'true' to retain the .pdb / .exp / .lib, etc files which can be useful for repro'ing issues that only occur in the compiled .exe
RetainDebuggingArtifacts: "false"
run: msbuild "buildbot.xml" /m /v:n /t:ReleaseAll /p:Platform=${{ matrix.platform }}
- name: Prepare Artifact Metadata
+4 -1
View File
@@ -20,8 +20,11 @@
CreateHardLinksForPublishFilesIfPossible=$(CreateHardLinksIfPossible);
</CompileFastPlz>
</PropertyGroup>
<PropertyGroup>
<RetainDebuggingArtifacts Condition="'$(RetainDebuggingArtifacts)' == ''">false</RetainDebuggingArtifacts>
</PropertyGroup>
<!-- Add all the custom targets here. -->
<Target Name="CleanBloat" AfterTargets="InternalBuild">
<Target Name="CleanBloat" AfterTargets="InternalBuild" Condition="'$(RetainDebuggingArtifacts)' == 'false'">
<ItemGroup>
<BloatToDelete Include="$(MSBuildProjectDirectory)\bin\**\*.bsc"/>
<BloatToDelete Include="$(MSBuildProjectDirectory)\bin\**\*.exp"/>