You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

disk-clean.yml 1.2KB

12345678910111213141516171819202122232425262728293031323334353637
  1. name: disk-clean
  2. on:
  3. workflow_call:
  4. jobs:
  5. triage:
  6. runs-on: ubuntu-latest
  7. steps:
  8. - uses: actions/checkout@v4
  9. # FIXME: https://github.com/jlumbroso/free-disk-space/issues/17
  10. - name: same as 'large-packages' but without 'google-cloud-sdk'
  11. shell: bash
  12. run: |
  13. sudo apt-get remove -y '^dotnet-.*'
  14. sudo apt-get remove -y '^llvm-.*'
  15. sudo apt-get remove -y 'php.*'
  16. sudo apt-get remove -y '^mongodb-.*'
  17. sudo apt-get remove -y '^mysql-.*'
  18. sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri
  19. sudo apt-get autoremove -y
  20. sudo apt-get clean
  21. - name: Free Disk Space (Ubuntu)
  22. uses: jlumbroso/free-disk-space@main
  23. with:
  24. # this might remove tools that are actually needed,
  25. # if set to "true" but frees about 6 GB
  26. tool-cache: false
  27. # all of these default to true, but feel free to set to
  28. # "false" if necessary for your workflow
  29. android: true
  30. dotnet: true
  31. haskell: true
  32. large-packages: false
  33. docker-images: false
  34. swap-storage: true