From ade2358dd3a98e266cb1beb96a59cec605d180a8 Mon Sep 17 00:00:00 2001 From: Steve Pfister Date: Mon, 10 Apr 2023 12:01:43 -0400 Subject: [PATCH] [release/7.0][Android] Free up more disk space on CI builds backport of https://github.com/dotnet/runtime/pull/84354 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 | 2 ++ src/mono/msbuild/android/build/AndroidApp.targets | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/eng/testing/tests.android.targets b/eng/testing/tests.android.targets index a8b279bf85317..6539bed6e1c9d 100644 --- a/eng/testing/tests.android.targets +++ b/eng/testing/tests.android.targets @@ -69,6 +69,8 @@ DestinationFolder="$(TestArchiveTestsDir)" SkipUnchangedFiles="true" Condition="'$(ArchiveTests)' == 'true' and '$(IgnoreForCI)' != 'true'" /> + + \ No newline at end of file diff --git a/src/mono/msbuild/android/build/AndroidApp.targets b/src/mono/msbuild/android/build/AndroidApp.targets index 6fd26641cd1e1..41ca304c042b0 100644 --- a/src/mono/msbuild/android/build/AndroidApp.targets +++ b/src/mono/msbuild/android/build/AndroidApp.targets @@ -1,4 +1,9 @@ + + $(GenerateAppBundle) + true + +