mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-25 20:50:44 -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
|
set -euo pipefail
|
||||||
|
|
||||||
echo "Removing unwanted software... "
|
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 docker image prune --all --force > /dev/null &
|
||||||
sudo apt-get remove -y '^dotnet-.*' > /dev/null
|
{
|
||||||
sudo apt-get remove -y '^llvm-.*' > /dev/null
|
sudo apt-get remove -y \
|
||||||
sudo apt-get remove -y 'php.*' > /dev/null
|
'^aspnetcore-.*' '^dotnet-.*' '^llvm-.*' \
|
||||||
sudo apt-get remove -y '^mongodb-.*' > /dev/null
|
'php.*' '^mongodb-.*' '^mysql-.*' '^google-cloud-*' \
|
||||||
sudo apt-get remove -y '^mysql-.*' > /dev/null
|
azure-cli google-chrome-stable firefox \
|
||||||
sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri --fix-missing > /dev/null
|
powershell mono-devel libgl1-mesa-dri \
|
||||||
sudo apt-get remove -y google-cloud-sdk --fix-missing > /dev/null
|
--fix-missing \
|
||||||
sudo apt-get remove -y google-cloud-cli --fix-missing > /dev/null
|
> /dev/null
|
||||||
sudo apt-get autoremove -y > /dev/null
|
sudo apt-get remove -y docker > /dev/null
|
||||||
sudo apt-get clean > /dev/null
|
sudo apt-get autoremove -y > /dev/null
|
||||||
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
sudo apt-get clean > /dev/null
|
||||||
|
} &
|
||||||
|
wait
|
||||||
|
df -h
|
||||||
|
sudo rm -rf /var/lib/docker
|
||||||
|
df -h
|
||||||
|
|
||||||
|
|
||||||
sudo swapoff -a
|
sudo swapoff -a
|
||||||
sudo rm -f /mnt/swapfile
|
sudo rm -f /mnt/swapfile &
|
||||||
free -h
|
sudo rm -rf /usr/{local,share} &
|
||||||
|
sudo rm -rf /opt &
|
||||||
|
sudo rm -rf "$AGENT_TOOLSDIRECTORY" &
|
||||||
|
|
||||||
|
wait
|
||||||
echo "... done"
|
echo "... done"
|
||||||
|
|
||||||
- name: Disk space report after modification
|
- name: Disk space report after modification
|
||||||
|
|
Loading…
Reference in a new issue