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