Skip to content

Commit

Permalink
ci: Test purging more packages (#4983)
Browse files Browse the repository at this point in the history
* ci: Test purging more packages

* Update list

* Clear extra dirs

* Error if anything fails, correct number

* Blast specific directories to clear more space instead
  • Loading branch information
joncinque authored Aug 15, 2023
1 parent 5351547 commit 460fbd7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 30 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pull-request-stake-pool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ on:
- 'stake-pool/**'
- 'token/**'
- 'ci/*-version.sh'
- 'ci/warning/purge-ubuntu-runner.sh'
- '.github/workflows/pull-request-stake-pool.yml'
push:
branches: [master]
paths:
- 'stake-pool/**'
- 'token/**'
- 'ci/*-version.sh'
- 'ci/warning/purge-ubuntu-runner.sh'
- '.github/workflows/pull-request-stake-pool.yml'

jobs:
Expand Down
46 changes: 16 additions & 30 deletions ci/warning/purge-ubuntu-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,21 @@
# ONLY RUNS IN CI.
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
if [[ -n "$CI" ]]; then
# Clears 4GB
sudo docker rmi $(docker image ls -aq)
# Clears 12GB
set -e

sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/share/swift
sudo rm -rf /usr/share/mysql
sudo rm -rf /usr/share/az_*
sudo rm -rf /usr/share/postgresql-common

sudo rm -rf /opt/ghc
sudo rm -rf /opt/az
sudo rm -rf /opt/pipx
sudo rm -rf /opt/microsoft
sudo rm -rf /opt/google
sudo rm -rf /opt/hostedtoolcache

sudo rm -rf /usr/local/lib/android
# Clears 6GB
#sudo apt purge aria2 \
# ansible \
# azure-cli \
# xorriso \
# dotnet-sdk-* \
# firefox \
# g++-9 \
# gfortran-9 \
# google-chrome-stable google-cloud-sdk \
# ant ant-optional \
# mercurial \
# mono-complete \
# mysql-client libmysqlclient-dev mysql-server \
# mssql-tools unixodbc-dev libxft-dev \
# libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev \
# nginx \
# shim-signed \
# php* \
# libpq-dev postgresql-client \
# powershell \
# ruby-full \
# sphinxsearch \
# subversion \
# -yq --allow-remove-essential
#sudo apt autopurge -y
#sudo apt autoclean -y
sudo rm -rf /usr/local/lib/heroku
fi

0 comments on commit 460fbd7

Please sign in to comment.