diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index eaf947af46..507362ddeb 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -33,13 +33,6 @@ jobs: - uses: gradle/wrapper-validation-action@v1 - # Cleanup directories before proceeding with setup - - name: Clean up old installations - if: ${{ matrix.os != 'windows-latest' }} - run: | - sudo rm -rf /usr/local/lib/android - sudo rm -rf /usr/share/dotnet - - uses: ./.github/actions/patch-dependencies with: run_tests: "true" @@ -70,6 +63,13 @@ jobs: - uses: gradle/wrapper-validation-action@v1 + # Cleanup directories before proceeding with setup + - name: Clean up old installations + if: ${{ matrix.os != 'windows-latest' }} + run: | + sudo rm -rf /usr/local/lib/android + sudo rm -rf /usr/share/dotnet + # cache local patch outputs - name: Cache local Maven repository uses: actions/cache@v3