diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml index 02b06aa..758d70c 100644 --- a/.github/workflows/build-images.yml +++ b/.github/workflows/build-images.yml @@ -57,9 +57,25 @@ jobs: - name: Check size of packages run: | - echo "Listing 100 largest packages" - dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100 df -h + echo "Listing 25 largest packages" + dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 25 + echo "Removing large packages" + sudo apt-get remove -y '^dotnet-.*' + sudo apt-get remove -y '^llvm-.*' + sudo apt-get remove -y '^libllvm-.*' + sudo apt-get remove -y azure-cli + sudo apt-get remove -y google-cloud-cli + sudo apt-get remove -y google-chrome-stable + sudo apt-get remove -y firefox + sudo apt-get remove -y powershell + sudo apt-get remove -y mono-devel + sudo apt-get remove -y '^temurin.*' + sudo apt-get autoremove -y + sudo apt-get clean + rm -rf /usr/share/dotnet/ + df -h + - name: Prepare id: prep