Skip to content

Commit

Permalink
modify disk size and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Ponchale committed Oct 23, 2023
1 parent 849b5af commit bf0d227
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/src/disk_swap_for_github_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -38,4 +44,4 @@ echo

echo After:
free -h
df -h
df -h

0 comments on commit bf0d227

Please sign in to comment.