Skip to content

Commit e36007e

Browse files
committed
Cleanup disk space before github CI build
1 parent c52fe39 commit e36007e

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/releaseDoc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ jobs:
8181
run: |
8282
mkdir -p build/doc
8383
cd build
84+
echo "==> Disk usage before clean"
85+
df -h .
86+
sudo rm -rf /usr/share/dotnet
87+
sudo rm -rf /opt/ghc
88+
sudo rm -rf /usr/local/lib/android
89+
sudo rm -rf /opt/hostedtoolcache
90+
echo "==> Disk usage after clean"
91+
df -h .
8492
export BUILD_TYPE=Debug
8593
cp $GITHUB_WORKSPACE/documentation/index.html doc/
8694
cp $GITHUB_WORKSPACE/documentation/hal_screenshot.* doc/

.github/workflows/ubuntu22.04.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -97,22 +97,14 @@ jobs:
9797
shell: bash
9898
# Execute the build. You can specify a specific target with "--target <NAME>"
9999
run: |
100-
echo "==> Disk usage overview"
101-
df -h
102-
103-
echo "==> Largest top-level directories (human-readable)"
104-
sudo du -h -d1 / 2>/dev/null | sort -hr | head -n 20 || true
105-
106-
echo "==> Hosted toolcache size"
107-
sudo du -h -d1 /opt/hostedtoolcache / 2>/dev/null | sort -hr | head -n 20 || true
108-
109-
cd build
100+
echo "==> Disk usage before clean"
110101
df -h .
111-
112102
sudo rm -rf /usr/share/dotnet
113103
sudo rm -rf /opt/ghc
114104
sudo rm -rf /usr/local/lib/android
115105
sudo rm -rf /opt/hostedtoolcache
106+
echo "==> Disk usage after clean"
107+
df -h .
116108
ninja
117109
env:
118110
CCACHE_DIR: ${{runner.workspace}}/.ccache

0 commit comments

Comments
 (0)