diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 43a9a44..9d883ea 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -66,6 +66,19 @@ jobs: steps: - name: Free disk space run: | + 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 '^llvm-.*' + sudo apt-get remove -y 'php.*' + sudo apt-get remove -y azure-cli google-cloud-cli google-chrome-stable firefox powershell mono-devel + sudo apt-get clean + df -h + echo "Removing large directories" + rm -rf /usr/share/dotnet/ + df -h sudo apt-get autoremove -y >/dev/null 2>&1 sudo apt-get autoclean -y >/dev/null 2>&1 docker rmi $(docker image ls -aq) >/dev/null 2>&1