Skip to content

Commit

Permalink
Free space on machine for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-piles committed Jul 9, 2024
1 parent 906d93d commit ebdbf26
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
with:
python-version: '3.11'

- name: Free up space
run: make free_up_space

- name: Install venv
run: make install_venv

Expand Down
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,20 @@ start_detached:

upgrade:
. .venv/bin/activate; pip-upgrade

free_up_space:
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo apt-get remove -y '^llvm-.*' || true
sudo apt-get remove -y 'php.*' || true
sudo apt-get remove -y google-cloud-sdk hhvm google-chrome-stable firefox mono-devel || true
sudo apt-get autoremove -y
sudo apt-get clean
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo docker image prune --all --force
df -h

0 comments on commit ebdbf26

Please sign in to comment.