From f2182242265671a7279ecc2cbee4d6d446c6ff65 Mon Sep 17 00:00:00 2001 From: Nabil Hachicha Date: Sat, 17 Feb 2024 14:16:09 +0000 Subject: [PATCH 1/2] Update pr.yml --- .github/workflows/pr.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 928b50cfee..5c1a08e5d8 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -498,11 +498,17 @@ jobs: needs.check-cache.outputs.android-test-sync-apk-cache-hit != 'true') steps: + - name: Machine disk space + run: df -h + - name: Checkout code uses: actions/checkout@v3 with: submodules: "recursive" - + + - name: Size before build + run: du -sh . + - name: Setup Java 11 uses: actions/setup-java@v3 with: @@ -571,6 +577,9 @@ jobs: working-directory: packages run: ./gradlew :test-base:assembleAndroidTest -Prealm.kotlin.buildRealmCore=false -Prealm.kotlin.mainHost=false + - name: Size afte Base Test Apk + run: du -sh . + - name: Build Android Sync Test Apk working-directory: packages run: ./gradlew :test-sync:packageDebug :test-sync:assembleAndroidTest -Prealm.kotlin.buildRealmCore=false -Prealm.kotlin.mainHost=false From f85c77118050f351ed60444445117d74d438991f Mon Sep 17 00:00:00 2001 From: Nabil Hachicha Date: Sat, 17 Feb 2024 15:02:45 +0000 Subject: [PATCH 2/2] Update pr.yml --- .github/workflows/pr.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 5c1a08e5d8..ceea57232c 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -508,7 +508,15 @@ jobs: - name: Size before build run: du -sh . - + + - name: Remove unnecessary files + run: | + sudo rm -rf /usr/share/dotnet + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + + - name: Size before build after cleanup + run: du -sh . + - name: Setup Java 11 uses: actions/setup-java@v3 with: