mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-25 08:30:45 -06:00
get weird with it
This commit is contained in:
parent
e4d08c4195
commit
6ec76eb866
1 changed files with 24 additions and 22 deletions
46
.github/actions/clean-disk/action.yml
vendored
46
.github/actions/clean-disk/action.yml
vendored
|
@ -18,31 +18,33 @@ runs:
|
|||
set -euo pipefail
|
||||
|
||||
echo "Removing unwanted software... "
|
||||
sudo rm -rf /usr/share/dotnet
|
||||
sudo rm -rf /usr/local/lib/android
|
||||
sudo rm -rf /opt
|
||||
sudo rm -rf /opt/ghc
|
||||
sudo rm -rf /usr/local/.ghcup
|
||||
sudo rm -rf /opt/hostedtoolcache
|
||||
sudo docker image prune --all --force > /dev/null
|
||||
sudo rm -rf /usr/local
|
||||
|
||||
sudo apt-get remove -y '^aspnetcore-.*' > /dev/null
|
||||
sudo apt-get remove -y '^dotnet-.*' > /dev/null
|
||||
sudo apt-get remove -y '^llvm-.*' > /dev/null
|
||||
sudo apt-get remove -y 'php.*' > /dev/null
|
||||
sudo apt-get remove -y '^mongodb-.*' > /dev/null
|
||||
sudo apt-get remove -y '^mysql-.*' > /dev/null
|
||||
sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri --fix-missing > /dev/null
|
||||
sudo apt-get remove -y google-cloud-sdk --fix-missing > /dev/null
|
||||
sudo apt-get remove -y google-cloud-cli --fix-missing > /dev/null
|
||||
sudo apt-get autoremove -y > /dev/null
|
||||
sudo apt-get clean > /dev/null
|
||||
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
||||
# sudo docker image prune --all --force > /dev/null &
|
||||
{
|
||||
sudo apt-get remove -y \
|
||||
'^aspnetcore-.*' '^dotnet-.*' '^llvm-.*' \
|
||||
'php.*' '^mongodb-.*' '^mysql-.*' '^google-cloud-*' \
|
||||
azure-cli google-chrome-stable firefox \
|
||||
powershell mono-devel libgl1-mesa-dri \
|
||||
--fix-missing \
|
||||
> /dev/null
|
||||
sudo apt-get remove -y docker > /dev/null
|
||||
sudo apt-get autoremove -y > /dev/null
|
||||
sudo apt-get clean > /dev/null
|
||||
} &
|
||||
wait
|
||||
df -h
|
||||
sudo rm -rf /var/lib/docker
|
||||
df -h
|
||||
|
||||
|
||||
sudo swapoff -a
|
||||
sudo rm -f /mnt/swapfile
|
||||
free -h
|
||||
sudo rm -f /mnt/swapfile &
|
||||
sudo rm -rf /usr/{local,share} &
|
||||
sudo rm -rf /opt &
|
||||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" &
|
||||
|
||||
wait
|
||||
echo "... done"
|
||||
|
||||
- name: Disk space report after modification
|
||||
|
|
Loading…
Reference in a new issue