Skip to content

Commit 98b0307

Browse files
committed
260503.124916.CST remove unnecessary directories on Linux runners to save storage
1 parent 999bae8 commit 98b0307

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

.github/workflows/lint_hosted.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -44,29 +44,6 @@ jobs:
4444
large-packages: true
4545
docker-images: true
4646
swap-storage: false # Important, or the runner may be shut down due to memory starvation.
47-
- name: Further clean up disk space
48-
run: |
49-
for dir in \
50-
/opt/hostedtoolcache \
51-
/usr/share/swift \
52-
/usr/lib/jvm \
53-
/usr/local/share/powershell \
54-
/usr/local/julia* \
55-
/usr/local/share/chromium \
56-
/opt/microsoft \
57-
/opt/az \
58-
/usr/share/dotnet \
59-
/usr/local/.ghcup \
60-
/usr/local/lib/android \
61-
/opt/google \
62-
; do
63-
du -hs "$dir" || true
64-
sudo rm -rf "$dir"
65-
done
66-
docker system prune -af || true
67-
docker builder prune -af || true
68-
echo "Cleaned up disk space by removing unnecessary directories. Remaining disk usage:"
69-
df -h
7047

7148
- name: Clone Repository (Latest)
7249
uses: actions/checkout@v6.0.2

0 commit comments

Comments
 (0)