ci: Add an explicit flag to retain Windows debugging artifacts

This commit is contained in:
Tyler Wilding 2021-01-24 17:56:12 -05:00 committed by lightningterror
parent 1bbc51c947
commit bfe0ba7e99
2 changed files with 7 additions and 1 deletions

View File

@ -65,6 +65,9 @@ jobs:
vs-version: 16.7 vs-version: 16.7
- name: Build PCSX2 - 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 }} run: msbuild "buildbot.xml" /m /v:n /t:ReleaseAll /p:Platform=${{ matrix.platform }}
- name: Prepare Artifact Metadata - name: Prepare Artifact Metadata

View File

@ -20,8 +20,11 @@
CreateHardLinksForPublishFilesIfPossible=$(CreateHardLinksIfPossible); CreateHardLinksForPublishFilesIfPossible=$(CreateHardLinksIfPossible);
</CompileFastPlz> </CompileFastPlz>
</PropertyGroup> </PropertyGroup>
<PropertyGroup>
<RetainDebuggingArtifacts Condition="'$(RetainDebuggingArtifacts)' == ''">false</RetainDebuggingArtifacts>
</PropertyGroup>
<!-- Add all the custom targets here. --> <!-- Add all the custom targets here. -->
<Target Name="CleanBloat" AfterTargets="InternalBuild"> <Target Name="CleanBloat" AfterTargets="InternalBuild" Condition="'$(RetainDebuggingArtifacts)' == 'false'">
<ItemGroup> <ItemGroup>
<BloatToDelete Include="$(MSBuildProjectDirectory)\bin\**\*.bsc"/> <BloatToDelete Include="$(MSBuildProjectDirectory)\bin\**\*.bsc"/>
<BloatToDelete Include="$(MSBuildProjectDirectory)\bin\**\*.exp"/> <BloatToDelete Include="$(MSBuildProjectDirectory)\bin\**\*.exp"/>