diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index aad5c06707..6dc5319558 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -63,6 +63,22 @@ jobs: - uses: gradle/wrapper-validation-action@v1 + # Check disk usage before cleanup + - name: Check disk usage before cleanup + run: df -h + + # Cleanup directories before proceeding with setup + - name: Clean up old installations + run: | + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf "/usr/local/share/boost" + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + + # Check disk usage after cleanup + - name: Check disk usage after cleanup + run: df -h + # cache local patch outputs - name: Cache local Maven repository uses: actions/cache@v3 @@ -149,3 +165,7 @@ jobs: arguments: build --stacktrace -PenableCoverage=true - uses: codecov/codecov-action@v3 + # Check disk usage after cleanup + - name: Check disk usage after worflow + run: df -h +