diff --git a/.github/workflows/src/disk_swap_for_github_runner.sh b/.github/workflows/src/disk_swap_for_github_runner.sh index 9d92ed4a328..8881cd71eb0 100644 --- a/.github/workflows/src/disk_swap_for_github_runner.sh +++ b/.github/workflows/src/disk_swap_for_github_runner.sh @@ -11,9 +11,11 @@ sudo fallocate -l 10G /mnt/swapfile sudo chmod 600 /mnt/swapfile sudo mkswap /mnt/swapfile sudo swapon /mnt/swapfile -sudo apt remove -y '^dotnet-.*' '^llvm-.*' '^php.*' '^mongodb-.*' '^mysql-.*' azure-cli google-cloud-sdk google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri +sudo apt remove -y '^dotnet-.*' '^llvm-.*' '^php.*' '^mongodb-.*' '^mysql-.*' clang azure-cli google-cloud-sdk google-chrome-stable microsoft-edge firefox powershell mono-devel libgl1-mesa-dri npm acl aria2 autoconf automake binutils bison brotli bzip2 coreutils sudo apt autoremove -y sudo apt clean +sudo rm -rf ./git +sudo rm -rf /home/linuxbrew sudo rm -rf /usr/share/dotnet sudo rm -rf /usr/local/lib/android sudo rm -rf /usr/local/graalvm @@ -29,7 +31,11 @@ sudo rm -rf /usr/local/share/chrome_driver sudo rm -rf /usr/local/share/edge_driver sudo rm -rf /usr/local/share/gecko_driver sudo rm -rf /usr/share/java -sudo fallocate -l 15G /home/runner/swapfile2 +sudo rm -rf /usr/share/miniconda +sudo rm -rf /usr/local/share/vcpkg + +sudo fallocate -l 13.2G /home/runner/swapfile2 + sudo chmod 600 /home/runner/swapfile2 sudo mkswap /home/runner/swapfile2 sudo swapon /home/runner/swapfile2 @@ -38,4 +44,4 @@ echo echo After: free -h -df -h +df -h \ No newline at end of file