Skip to content

Commit

Permalink
GH-35946: [CI][Packaging] Free up more disk space for Linux packages (#…
Browse files Browse the repository at this point in the history
…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 <raulcumplido@gmail.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
  • Loading branch information
raulcd committed Jun 7, 2023
1 parent 1d75816 commit 9630258
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions dev/tasks/linux-packages/github.linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,37 @@ jobs:
env.ARCHITECTURE == 'amd64'
run: |
df -h
du -hsc /opt/* /usr/local/*
du -hsc /opt/hostedtoolcache/*
du -hs /usr/local/bin
# ~1GB (From 1.2GB to 214MB)
sudo rm -rf /usr/local/bin/aliyun \
/usr/local/bin/azcopy \
/usr/local/bin/bicep \
/usr/local/bin/cmake-gui \
/usr/local/bin/cpack \
/usr/local/bin/helm \
/usr/local/bin/hub \
/usr/local/bin/kubectl \
/usr/local/bin/minikube \
/usr/local/bin/node \
/usr/local/bin/packer \
/usr/local/bin/pulumi* \
/usr/local/bin/stack \
/usr/local/bin/terraform
du -hs /usr/local/bin
du -hs /usr/local/share
# 1.3GB
sudo rm -rf /usr/local/share/powershell
du -hs /usr/local/share
# 5.3GB
sudo rm -rf /opt/hostedtoolcache/CodeQL || :
# 1.4GB
sudo rm -rf /opt/hostedtoolcache/go || :
# 489MB
sudo rm -rf /opt/hostedtoolcache/PyPy || :
# 1.2GB
sudo rm -rf /opt/hostedtoolcache/Python || :
# 376MB
sudo rm -rf /opt/hostedtoolcache/node || :
df -h
Expand Down

0 comments on commit 9630258

Please sign in to comment.