[Android] Free up more disk space on CI builds (#84354)
authorSteve Pfister <steveisok@users.noreply.github.com>
Wed, 5 Apr 2023 22:32:04 +0000 (18:32 -0400)
committerGitHub <noreply@github.com>
Wed, 5 Apr 2023 22:32:04 +0000 (18:32 -0400)
The android builds are running out of disk space when building the library test apps.  This change tries to recoup some of that space by deleting artifacts after each test was built.

eng/testing/tests.android.targets
src/tests/FunctionalTests/Android/Device_Emulator/StartupHook/Android.Device_Emulator.StartupHook.Test.csproj

index 9f67b7b3c6a243b5e2feacbfc7be6b323cbe4eda..3c3eb46fa28ebd47c8f985b776864641ec554b09 100644 (file)
@@ -69,6 +69,8 @@
           DestinationFolder="$(TestArchiveTestsDir)"
           SkipUnchangedFiles="true"
           Condition="'$(ArchiveTests)' == 'true' and '$(IgnoreForCI)' != 'true'" />
+
+    <RemoveDir Condition="'$(ArchiveTests)' == 'true' and '$(AndroidGenerateAppBundle)' == 'true'" Directories="$(OutDir)" />
   </Target>
 
 </Project>
\ No newline at end of file
index 16635288c9c9b1987344885b9d027fc32204f528..79a8b8cd63cfc925eaecac08b2de1155141ea2f2 100644 (file)
@@ -14,6 +14,8 @@
   </ItemGroup>
 
   <ItemGroup>
-      <ProjectReference Include="..\..\..\TestAssets\StartupHookForFunctionalTest\StartupHookForFunctionalTest.csproj" />
+      <ProjectReference Include="..\..\..\TestAssets\StartupHookForFunctionalTest\StartupHookForFunctionalTest.csproj">
+        <Private>true</Private>
+      </ProjectReference>
   </ItemGroup>
 </Project>