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

fgerlits pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git

commit b1c3720695a2f059be0a18f5e34d761df12113b9
Author: Gabor Gyimesi <[email protected]>
AuthorDate: Thu Aug 17 12:17:06 2023 +0200

    MINIFICPP-2187 Free up space on CI runners for CentOS job
    
    Signed-off-by: Ferenc Gerlits <[email protected]>
    This closes #1632
---
 .github/workflows/ci.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5ba42fe6f..8adc5d8a5 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -289,6 +289,16 @@ jobs:
           sudo apt update
           sudo apt install -y ccache
           echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
+      - id: free_disk_space
+        run: |
+          # We can gain additional disk space on the Ubuntu runners thanks to 
these suggestions:
+          # 
https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
+          # 
https://github.com/actions/runner-images/issues/2606#issuecomment-772683150
+          sudo rm -rf /usr/share/dotnet
+          sudo rm -rf /usr/local/lib/android
+          sudo rm -rf /opt/ghc
+          sudo rm -rf "/usr/local/share/boost"
+          sudo rm -rf "$AGENT_TOOLSDIRECTORY"
       - id: build
         run: |
           if [ -d ~/.ccache ]; then mv ~/.ccache .; fi

Reply via email to