From 7bee8c8155dfdb4093c76b3069416a6cea5b2430 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 6 Aug 2024 11:35:55 -0400 Subject: [PATCH] GitHub Cuda CI: Remove large packages --- .github/workflows/linux.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 61ea8f1a12..eb88426b2f 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -315,6 +315,29 @@ jobs: numdiff \ openmpi-bin \ libboost-all-dev + # https://github.com/apache/flink/blob/master/tools/azure-pipelines/free_disk_space.sh + - name: remove unused large packages + run : | + echo "==============================================================================" + echo "Freeing up disk space on CI system" + echo "==============================================================================" + + 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 '^ghc-8.*' + sudo apt-get remove -y '^dotnet-.*' + sudo apt-get remove -y '^llvm-.*' + sudo apt-get remove -y 'php.*' + sudo apt-get remove -y azure-cli google-cloud-sdk hhvm google-chrome-stable firefox powershell mono-devel + sudo apt-get autoremove -y + sudo apt-get clean + df -h + echo "Removing large directories" + # deleting 15GB + rm -rf /usr/share/dotnet/ + df -h - uses: lukka/get-cmake@v3.27.9 - name: info run: | -- 2.39.5