This is an automated email from the ASF dual-hosted git repository.

raulcd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 732d4000c8 GH-38206: [CI] Remove more pre-installed files (#38233)
732d4000c8 is described below

commit 732d4000c803675e2c75069f0b08ac73806ce8be
Author: Sutou Kouhei <[email protected]>
AuthorDate: Mon Oct 16 18:50:15 2023 +0900

    GH-38206: [CI] Remove more pre-installed files (#38233)
    
    ### Rationale for this change
    
    We need more disk space...
    
    ### What changes are included in this PR?
    
    Remove more pre-installed files.
    
    ### Are these changes tested?
    
    Yes.
    
    ### Are there any user-facing changes?
    
    No.
    * Closes: #38206
    
    Authored-by: Sutou Kouhei <[email protected]>
    Signed-off-by: Raúl Cumplido <[email protected]>
---
 ci/scripts/util_free_space.sh | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/ci/scripts/util_free_space.sh b/ci/scripts/util_free_space.sh
index 54445d0d49..acea074fee 100755
--- a/ci/scripts/util_free_space.sh
+++ b/ci/scripts/util_free_space.sh
@@ -24,12 +24,19 @@ if [ "${GITHUB_ACTIONS}" = "true" ]; then
   echo "::group::/usr/local/*"
   du -hsc /usr/local/*
   echo "::endgroup::"
+  # ~1GB
+  sudo rm -rf \
+    /usr/local/aws-cli \
+    /usr/local/aws-sam-cil \
+    /usr/local/julia* || :
   echo "::group::/usr/local/bin/*"
   du -hsc /usr/local/bin/*
   echo "::endgroup::"
   # ~1GB (From 1.2GB to 214MB)
   sudo rm -rf \
     /usr/local/bin/aliyun \
+    /usr/local/bin/aws \
+    /usr/local/bin/aws_completer \
     /usr/local/bin/azcopy \
     /usr/local/bin/bicep \
     /usr/local/bin/cmake-gui \
@@ -41,16 +48,37 @@ if [ "${GITHUB_ACTIONS}" = "true" ]; then
     /usr/local/bin/node \
     /usr/local/bin/packer \
     /usr/local/bin/pulumi* \
+    /usr/local/bin/sam \
     /usr/local/bin/stack \
     /usr/local/bin/terraform || :
+  # 142M
+  sudo rm -rf /usr/local/bin/oc || : \
   echo "::group::/usr/local/share/*"
   du -hsc /usr/local/share/*
   echo "::endgroup::"
+  # 506MB
+  sudo rm -rf /usr/local/share/chromium || :
   # 1.3GB
   sudo rm -rf /usr/local/share/powershell || :
+  echo "::group::/usr/local/lib/*"
+  du -hsc /usr/local/lib/*
+  echo "::endgroup::"
+  # 15GB
+  sudo rm -rf /usr/local/lib/android || :
+  # 341MB
+  sudo rm -rf /usr/local/lib/heroku || :
+  # 1.2GB
+  sudo rm -rf /usr/local/lib/node_modules || :
   echo "::group::/opt/*"
   du -hsc /opt/*
   echo "::endgroup::"
+  # 679MB
+  sudo rm -rf /opt/az || :
+  echo "::group::/opt/microsoft/*"
+  du -hsc /opt/microsoft/*
+  echo "::endgroup::"
+  # 197MB
+  sudo rm -rf /opt/microsoft/powershell || :
   echo "::group::/opt/hostedtoolcache/*"
   du -hsc /opt/hostedtoolcache/*
   echo "::endgroup::"

Reply via email to