From 6fc4a380f652655693b4933e28562ef47c8a8d19 Mon Sep 17 00:00:00 2001 From: William Candillon Date: Tue, 6 Aug 2024 13:58:53 +0200 Subject: [PATCH] fix Android build tests Lately this action has been running out of disk space, this is an attempt on fixing this issue. --- .github/workflows/android-ubuntu.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android-ubuntu.yml b/.github/workflows/android-ubuntu.yml index e2f9055f1b..432f6eae06 100644 --- a/.github/workflows/android-ubuntu.yml +++ b/.github/workflows/android-ubuntu.yml @@ -5,7 +5,6 @@ on: branches: - main pull_request: - jobs: build: runs-on: ubuntu-latest @@ -94,9 +93,13 @@ jobs: # Cache apk for both directories - name: Cache apk - uses: actions/cache/save@v3 + uses: actions/cache@v3 env: cache-name: cache-apk with: path: ${{ matrix.directory }}/android/app/build/outputs/apk/debug/app-debug.apk key: apk-${{ github.sha }} + + # Clean up after the build to free up space + - name: Clean up build directories + run: rm -rf ${{ matrix.directory }}/android/app/build