Skip to content

Commit 75a977c

Browse files
committed
ci: Free up disk space for the benchmark jobs as well
1 parent 5b396d0 commit 75a977c

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/benchmarks.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,63 @@ jobs:
2222
- room_list
2323

2424
steps:
25+
# This CI workflow can run into space issue, so we're cleaning up some
26+
# space here.
27+
- name: Create some more space
28+
run: |
29+
echo "Disk space before cleanup"
30+
df -h
31+
32+
cd /opt
33+
find . -maxdepth 1 -mindepth 1 '!' -path ./containerd '!' -path ./actionarchivecache '!' -path ./runner '!' -path ./runner-cache -exec rm -rf '{}' ';'
34+
rm -rf /opt/hostedtoolcache
35+
36+
# Get rid of binaries and libs we're not interested in.
37+
sudo rm -rf \
38+
/usr/local/julia* \
39+
/usr/local/aws*
40+
41+
sudo rm -rf \
42+
/usr/local/bin/minikube \
43+
/usr/local/bin/node \
44+
/usr/local/bin/stack \
45+
/usr/local/bin/bicep \
46+
/usr/local/bin/pulumi* \
47+
/usr/local/bin/helm \
48+
/usr/local/bin/azcopy \
49+
/usr/local/bin/packer \
50+
/usr/local/bin/cmake-gui \
51+
/usr/local/bin/cpack
52+
53+
sudo rm -rf \
54+
/usr/local/share/powershell \
55+
/usr/local/share/chromium
56+
57+
sudo rm -rf /usr/local/lib/android
58+
59+
echo "::group::/usr/local/bin/*"
60+
du -hsc /usr/local/bin/* | sort -h
61+
echo "::endgroup::"
62+
63+
echo "::group::/usr/local/share/*"
64+
du -hsc /usr/local/share/* | sort -h
65+
echo "::endgroup::"
66+
67+
echo "::group::/usr/local/*"
68+
du -hsc /usr/local/* | sort -h
69+
echo "::endgroup::"
70+
71+
echo "::group::/usr/local/lib/*"
72+
du -hsc /usr/local/lib/* | sort -h
73+
echo "::endgroup::"
74+
75+
echo "::group::/opt/*"
76+
du -hsc /opt/* | sort -h
77+
echo "::endgroup::"
78+
79+
echo "Disk space after cleanup"
80+
df -h
81+
2582
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
2683

2784
- name: Setup rust toolchain, cache and cargo-codspeed binary

0 commit comments

Comments
 (0)