Skip to content

Commit cb9e43a

Browse files
committed
More verbose clearing of disk space
1 parent 2b84db9 commit cb9e43a

File tree

1 file changed

+26
-19
lines changed

1 file changed

+26
-19
lines changed

.github/workflows/check-ide-compatibility.yml

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,32 @@ jobs:
1313
- name: Free up disk space
1414
run: |
1515
sudo df -h
16-
sudo rm -rf /usr/share/dotnet \
17-
/usr/local/.ghcup \
18-
/usr/local/swift \
19-
/usr/share/swift \
20-
/usr/lib/jvm \
21-
/usr/local/lib/android \
22-
/usr/lib/google-cloud-sdk \
23-
/usr/local/share/boost \
24-
/usr/local/share/powershell \
25-
/usr/local/share/chromium \
26-
/usr/local/lib/node_modules \
27-
/usr/lib/mono \
28-
/usr/lib/heroku \
29-
/usr/lib/firefox \
30-
/usr/share/miniconda \
31-
/opt/microsoft \
32-
/opt/chrome \
33-
/opt/pipx \
34-
"$AGENT_TOOLSDIRECTORY" || true
16+
declare -a paths_to_wipe=(
17+
"/usr/share/dotnet"
18+
"/usr/local/.ghcup"
19+
"/usr/local/swift"
20+
"/usr/share/swift"
21+
"/usr/lib/jvm"
22+
"/usr/local/lib/android"
23+
"/usr/lib/google-cloud-sdk"
24+
"/usr/local/share/boost"
25+
"/usr/local/share/powershell"
26+
"/usr/local/share/chromium"
27+
"/usr/local/lib/node_modules"
28+
"/usr/lib/mono"
29+
"/usr/lib/heroku"
30+
"/usr/lib/firefox"
31+
"/usr/share/miniconda"
32+
"/opt/microsoft"
33+
"/opt/chrome"
34+
"/opt/pipx"
35+
"$AGENT_TOOLSDIRECTORY"
36+
)
37+
for p in "${paths_to_wipe[@]}"
38+
do
39+
echo "Clearing $p"
40+
rm -rf $p || true
41+
done
3542
sudo df -h
3643
3744
- uses: actions/checkout@v5

0 commit comments

Comments
 (0)