From efb5b39ba29185553e7761aeb64d3d828c959697 Mon Sep 17 00:00:00 2001 From: Goooler Date: Mon, 20 Nov 2023 17:31:08 +0800 Subject: [PATCH] Enable gradle-home-cache-cleanup on CI See https://github.com/gradle/gradle-build-action?tab=readme-ov-file#remove-unused-files-from-gradle-user-home-before-saving-to-cache. --- .github/workflows/Build.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Build.yaml b/.github/workflows/Build.yaml index 6bee0ddfb5..66730f5bac 100644 --- a/.github/workflows/Build.yaml +++ b/.github/workflows/Build.yaml @@ -39,6 +39,8 @@ jobs: - name: Setup Gradle uses: gradle/gradle-build-action@v3 + with: + gradle-home-cache-cleanup: true - name: Check build-logic run: ./gradlew check -p build-logic @@ -188,6 +190,8 @@ jobs: - name: Setup Gradle uses: gradle/gradle-build-action@v3 + with: + gradle-home-cache-cleanup: true - name: Build projects and run instrumentation tests uses: reactivecircus/android-emulator-runner@v2 @@ -208,7 +212,7 @@ jobs: - name: Generate coverage reports for Debug variants (only API 30) if: matrix.api-level == 30 run: ./gradlew createDemoDebugCombinedCoverageReport - + - name: Upload test reports if: always() uses: actions/upload-artifact@v4 @@ -227,7 +231,7 @@ jobs: paths: | ${{ github.workspace }}/**/build/reports/jacoco/**/*Report.xml token: ${{ secrets.GITHUB_TOKEN }} - + - name: Upload local coverage reports (XML + HTML) (only API 30) if: matrix.api-level == 30 uses: actions/upload-artifact@v4