Skip to content

Commit 3ea94b6

Browse files
committed
clean up disk space
1 parent 8e41a98 commit 3ea94b6

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/integration-linux.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,26 @@ jobs:
4444
distribution: 'temurin'
4545
java-version: ${{ matrix.java }}
4646

47+
- name: Clean up disk space
48+
run: |
49+
echo "--- Disk space before cleanup ---"
50+
df -h
51+
sudo rm -rf /usr/share/dotnet
52+
sudo rm -rf /usr/local/lib/android
53+
sudo rm -rf /opt/ghc
54+
sudo rm -rf /usr/share/swift
55+
sudo rm -rf /usr/local/.ghcup
56+
sudo rm -rf /usr/share/code
57+
sudo rm -rf /usr/share/miniconda
58+
sudo rm -rf /usr/share/az_deps
59+
# Remove unused Docker images, containers, networks, and build cache
60+
# The '|| true' prevents the workflow from failing if no items are found to prune.
61+
docker system prune -a --force || true
62+
docker builder prune -a --force || true
63+
64+
echo "--- Disk space after cleanup ---"
65+
df -h
66+
4767
# Retrieve build locations with `go env`
4868
# <https://markphelps.me/posts/speed-up-your-go-builds-with-actions-cache/>
4969
- id: go-cache-paths

0 commit comments

Comments
 (0)