Skip to content

Commit aa46e97

Browse files
committed
Clean up disk.
1 parent b6a1e51 commit aa46e97

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/pr-build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,22 @@ jobs:
6363

6464
- uses: gradle/wrapper-validation-action@v1
6565

66+
# Check disk usage before cleanup
67+
- name: Check disk usage before cleanup
68+
run: df -h
69+
70+
# Cleanup directories before proceeding with setup
71+
- name: Clean up old installations
72+
run: |
73+
sudo rm -rf /usr/share/dotnet
74+
sudo rm -rf /opt/ghc
75+
sudo rm -rf "/usr/local/share/boost"
76+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
77+
78+
# Check disk usage after cleanup
79+
- name: Check disk usage after cleanup
80+
run: df -h
81+
6682
# cache local patch outputs
6783
- name: Cache local Maven repository
6884
uses: actions/cache@v3
@@ -149,3 +165,7 @@ jobs:
149165
arguments: build --stacktrace -PenableCoverage=true
150166
- uses: codecov/codecov-action@v3
151167

168+
# Check disk usage after cleanup
169+
- name: Check disk usage after worflow
170+
run: df -h
171+

0 commit comments

Comments
 (0)