You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2022/10/20 10:33:54 UTC

[groovy] branch master updated (6ac0643201 -> c23394b1d8)

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

paulk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


    from 6ac0643201 Try to avoid the "No space left on device" GitHub action errors
     new 7d203fda22 Try to avoid the "No space left on device" GitHub action errors
     new c23394b1d8 Try to avoid the "No space left on device" GitHub action errors

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/groovy-build-dist.yml | 20 ++++++++++++++++++--
 .github/workflows/groovy-build-test.yml | 24 ++++++++++++++++++++++++
 2 files changed, 42 insertions(+), 2 deletions(-)


[groovy] 01/02: Try to avoid the "No space left on device" GitHub action errors

Posted by pa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 7d203fda226625ace0113933f175c9362a3b5bb3
Author: Paul King <pa...@asert.com.au>
AuthorDate: Thu Oct 20 20:33:01 2022 +1000

    Try to avoid the "No space left on device" GitHub action errors
---
 .github/workflows/groovy-build-dist.yml | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/groovy-build-dist.yml b/.github/workflows/groovy-build-dist.yml
index 3ea1b65d63..d6b085a436 100644
--- a/.github/workflows/groovy-build-dist.yml
+++ b/.github/workflows/groovy-build-dist.yml
@@ -30,13 +30,29 @@ jobs:
     runs-on: ${{ matrix.os }}
     steps:
       - uses: actions/checkout@v3
+      - name: Check disk space
+        run: sudo df -h
       - name: Free disk space
         run: |
-          sudo df -h
-          sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /usr/local/share/boost "$AGENT_TOOLSDIRECTORY"
+          echo "Listing 20 largest packages"
+          dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 20
+
+          echo "Removing large unused files/directories"
+          sudo rm -rf /usr/share/dotnet /usr/local/lib/android /usr/local/lib/node_modules
+          sudo rm -rf /opt/ghc /usr/local/share/boost "$AGENT_TOOLSDIRECTORY"
+          sudo rm -rf /usr/local/graalvm /usr/local/.ghcup /usr/local/share/powershell /usr/local/share/chromium
+
+          echo "Removing large unused packages"
+          sudo apt-get remove -y '^dotnet-.*'
+          sudo apt-get remove -y '^llvm-.*'
+          sudo apt-get remove -y 'php.*'
+          sudo apt-get remove -y '^mongodb-.*'
+          sudo apt-get remove -y '^mysql-.*'
+          sudo apt-get remove -y azure-cli google-cloud-sdk hhvm google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri
           sudo apt-get autoclean -y >/dev/null 2>&1
           sudo apt-get clean -y >/dev/null 2>&1
           sudo apt-get autoremove -y >/dev/null 2>&1
+
           sudo df -h
       - name: Set up JDK
         uses: actions/setup-java@v3


[groovy] 02/02: Try to avoid the "No space left on device" GitHub action errors

Posted by pa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit c23394b1d84e5ae53e7e415fa27f7f21381ce326
Author: Paul King <pa...@asert.com.au>
AuthorDate: Thu Oct 20 20:33:41 2022 +1000

    Try to avoid the "No space left on device" GitHub action errors
---
 .github/workflows/groovy-build-test.yml | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/.github/workflows/groovy-build-test.yml b/.github/workflows/groovy-build-test.yml
index d9d062c458..578ab56419 100644
--- a/.github/workflows/groovy-build-test.yml
+++ b/.github/workflows/groovy-build-test.yml
@@ -30,6 +30,30 @@ jobs:
     runs-on: ${{ matrix.os }}
     steps:
       - uses: actions/checkout@v3
+      - name: Check disk space
+        run: sudo df -h
+      - name: Free disk space
+        run: |
+          echo "Listing 20 largest packages"
+          dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 20
+
+          echo "Removing large unused files/directories"
+          sudo rm -rf /usr/share/dotnet /usr/local/lib/android /usr/local/lib/node_modules
+          sudo rm -rf /opt/ghc /usr/local/share/boost "$AGENT_TOOLSDIRECTORY"
+          sudo rm -rf /usr/local/graalvm /usr/local/.ghcup /usr/local/share/powershell /usr/local/share/chromium
+
+          echo "Removing large unused packages"
+          sudo apt-get remove -y '^dotnet-.*'
+          sudo apt-get remove -y '^llvm-.*'
+          sudo apt-get remove -y 'php.*'
+          sudo apt-get remove -y '^mongodb-.*'
+          sudo apt-get remove -y '^mysql-.*'
+          sudo apt-get remove -y azure-cli google-cloud-sdk hhvm google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri
+          sudo apt-get autoclean -y >/dev/null 2>&1
+          sudo apt-get clean -y >/dev/null 2>&1
+          sudo apt-get autoremove -y >/dev/null 2>&1
+
+          sudo df -h
       - name: Set up JDK
         uses: actions/setup-java@v3
         with: