From 76239489c65a97cc1f834862fd08b485e7d00877 Mon Sep 17 00:00:00 2001 From: aloyszhang Date: Mon, 30 Sep 2024 14:34:57 +0800 Subject: [PATCH] update disk clean --- .github/workflows/ci_build.yml | 16 +++++++++++++++- .github/workflows/ci_docker.yml | 16 +++++++++++++++- .github/workflows/ci_ut_flink15.yml | 16 +++++++++++++++- .github/workflows/ci_ut_flink18.yml | 16 +++++++++++++++- .github/workflows/codeql_analysis.yml | 16 +++++++++++++++- 5 files changed, 75 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml index bcff281415d..78e236c4808 100644 --- a/.github/workflows/ci_build.yml +++ b/.github/workflows/ci_build.yml @@ -65,10 +65,24 @@ jobs: run: | echo "=== Before pruning ===" df -h + echo "Listing 100 largest packages" + dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100 + df -h + echo "Removing large packages" + sudo apt-get remove -y '^dotnet-.*' + sudo apt-get remove -y '^mongodb-.*' + sudo apt-get remove -y azure-cli google-chrome-stable google-cloud-cli microsoft-edge-stable firefox powershell mono-devel libgl1-mesa-dri + df -h + echo "Removing large directories" sudo rm -rf /usr/share/dotnet sudo rm -rf /usr/local/lib/android sudo rm -rf /opt/ghc - sudo rm -rf /opt/hostedtoolcache + sudo rm -rf /usr/local/graalvm/ + sudo rm -rf /usr/local/.ghcup/ + sudo rm -rf /usr/local/share/powershell + sudo rm -rf /usr/local/share/chromium + sudo rm -rf /usr/local/lib/node_modules + echo echo "=== After pruning ===" df -h diff --git a/.github/workflows/ci_docker.yml b/.github/workflows/ci_docker.yml index e362379d8d2..5b135b418be 100644 --- a/.github/workflows/ci_docker.yml +++ b/.github/workflows/ci_docker.yml @@ -59,10 +59,24 @@ jobs: run: | echo "=== Before pruning ===" df -h + echo "Listing 100 largest packages" + dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100 + df -h + echo "Removing large packages" + sudo apt-get remove -y '^dotnet-.*' + sudo apt-get remove -y '^mongodb-.*' + sudo apt-get remove -y azure-cli google-chrome-stable google-cloud-cli microsoft-edge-stable firefox powershell mono-devel libgl1-mesa-dri + df -h + echo "Removing large directories" sudo rm -rf /usr/share/dotnet sudo rm -rf /usr/local/lib/android sudo rm -rf /opt/ghc - sudo rm -rf /opt/hostedtoolcache + sudo rm -rf /usr/local/graalvm/ + sudo rm -rf /usr/local/.ghcup/ + sudo rm -rf /usr/local/share/powershell + sudo rm -rf /usr/local/share/chromium + sudo rm -rf /usr/local/lib/node_modules + echo echo "=== After pruning ===" df -h diff --git a/.github/workflows/ci_ut_flink15.yml b/.github/workflows/ci_ut_flink15.yml index 5c7b52c6971..4a3ad3b4e27 100644 --- a/.github/workflows/ci_ut_flink15.yml +++ b/.github/workflows/ci_ut_flink15.yml @@ -44,10 +44,24 @@ jobs: run: | echo "=== Before pruning ===" df -h + echo "Listing 100 largest packages" + dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100 + df -h + echo "Removing large packages" + sudo apt-get remove -y '^dotnet-.*' + sudo apt-get remove -y '^mongodb-.*' + sudo apt-get remove -y azure-cli google-chrome-stable google-cloud-cli microsoft-edge-stable firefox powershell mono-devel libgl1-mesa-dri + df -h + echo "Removing large directories" sudo rm -rf /usr/share/dotnet sudo rm -rf /usr/local/lib/android sudo rm -rf /opt/ghc - sudo rm -rf /opt/hostedtoolcache + sudo rm -rf /usr/local/graalvm/ + sudo rm -rf /usr/local/.ghcup/ + sudo rm -rf /usr/local/share/powershell + sudo rm -rf /usr/local/share/chromium + sudo rm -rf /usr/local/lib/node_modules + echo echo "=== After pruning ===" df -h diff --git a/.github/workflows/ci_ut_flink18.yml b/.github/workflows/ci_ut_flink18.yml index 5c2f2709f27..859cddef30b 100644 --- a/.github/workflows/ci_ut_flink18.yml +++ b/.github/workflows/ci_ut_flink18.yml @@ -44,10 +44,24 @@ jobs: run: | echo "=== Before pruning ===" df -h + echo "Listing 100 largest packages" + dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100 + df -h + echo "Removing large packages" + sudo apt-get remove -y '^dotnet-.*' + sudo apt-get remove -y '^mongodb-.*' + sudo apt-get remove -y azure-cli google-chrome-stable google-cloud-cli microsoft-edge-stable firefox powershell mono-devel libgl1-mesa-dri + df -h + echo "Removing large directories" sudo rm -rf /usr/share/dotnet sudo rm -rf /usr/local/lib/android sudo rm -rf /opt/ghc - sudo rm -rf /opt/hostedtoolcache + sudo rm -rf /usr/local/graalvm/ + sudo rm -rf /usr/local/.ghcup/ + sudo rm -rf /usr/local/share/powershell + sudo rm -rf /usr/local/share/chromium + sudo rm -rf /usr/local/lib/node_modules + echo echo "=== After pruning ===" df -h diff --git a/.github/workflows/codeql_analysis.yml b/.github/workflows/codeql_analysis.yml index bb10d89469a..c312af2b3e4 100644 --- a/.github/workflows/codeql_analysis.yml +++ b/.github/workflows/codeql_analysis.yml @@ -42,10 +42,24 @@ jobs: run: | echo "=== Before pruning ===" df -h + echo "Listing 100 largest packages" + dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100 + df -h + echo "Removing large packages" + sudo apt-get remove -y '^dotnet-.*' + sudo apt-get remove -y '^mongodb-.*' + sudo apt-get remove -y azure-cli google-chrome-stable google-cloud-cli microsoft-edge-stable firefox powershell mono-devel libgl1-mesa-dri + df -h + echo "Removing large directories" sudo rm -rf /usr/share/dotnet sudo rm -rf /usr/local/lib/android sudo rm -rf /opt/ghc - sudo rm -rf /opt/hostedtoolcache + sudo rm -rf /usr/local/graalvm/ + sudo rm -rf /usr/local/.ghcup/ + sudo rm -rf /usr/local/share/powershell + sudo rm -rf /usr/local/share/chromium + sudo rm -rf /usr/local/lib/node_modules + echo echo "=== After pruning ===" df -h