Skip to content

Commit eb89c63

Browse files
committed
GH-35946: [CI][Packaging] Free up more disk space for Linux packages (#35947)
### Rationale for this change Fix some Linux packaging jobs that fail due to out of space ### What changes are included in this PR? Cleaning up some more cache ### Are these changes tested? With crossbow jobs ### Are there any user-facing changes? No * Closes: #35946 Authored-by: Raúl Cumplido <[email protected]> Signed-off-by: Raúl Cumplido <[email protected]>
1 parent 25cc3a4 commit eb89c63

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

dev/tasks/linux-packages/github.linux.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,37 @@ jobs:
3838
env.ARCHITECTURE == 'amd64'
3939
run: |
4040
df -h
41+
du -hsc /opt/* /usr/local/*
4142
du -hsc /opt/hostedtoolcache/*
43+
du -hs /usr/local/bin
44+
# ~1GB (From 1.2GB to 214MB)
45+
sudo rm -rf /usr/local/bin/aliyun \
46+
/usr/local/bin/azcopy \
47+
/usr/local/bin/bicep \
48+
/usr/local/bin/cmake-gui \
49+
/usr/local/bin/cpack \
50+
/usr/local/bin/helm \
51+
/usr/local/bin/hub \
52+
/usr/local/bin/kubectl \
53+
/usr/local/bin/minikube \
54+
/usr/local/bin/node \
55+
/usr/local/bin/packer \
56+
/usr/local/bin/pulumi* \
57+
/usr/local/bin/stack \
58+
/usr/local/bin/terraform
59+
du -hs /usr/local/bin
60+
du -hs /usr/local/share
61+
# 1.3GB
62+
sudo rm -rf /usr/local/share/powershell
63+
du -hs /usr/local/share
4264
# 5.3GB
4365
sudo rm -rf /opt/hostedtoolcache/CodeQL || :
4466
# 1.4GB
4567
sudo rm -rf /opt/hostedtoolcache/go || :
4668
# 489MB
4769
sudo rm -rf /opt/hostedtoolcache/PyPy || :
70+
# 1.2GB
71+
sudo rm -rf /opt/hostedtoolcache/Python || :
4872
# 376MB
4973
sudo rm -rf /opt/hostedtoolcache/node || :
5074
df -h

0 commit comments

Comments
 (0)