Skip to content

New `tool-cache` option, v1.1.0

Compare
Choose a tag to compare
@jlumbroso jlumbroso released this 27 Jun 21:38
· 27 commits to main since this release

This version introduces the tool-cache option suggested by @miketimofeev, which removes the ~6GB tools cache (Node, Go, Python, Ruby, ...) that is preinstalled in GitHub Actions runners. This brings the total amount of space this extension can free to 31 GB.

Unlike the other options, since tool-cache can uninstall tools that are likely to be useful, it defaults to false, and must be explicitly set to true. In other words, this action:

name: Free Disk Space (Ubuntu)
on: push

jobs:
  free-disk-space:
    runs-on: ubuntu-latest
    steps:

    - name: Free Disk Space (Ubuntu)
      uses: jlumbroso/free-disk-space@main
      with:
        # this might remove tools that are actually needed,
        # when set to "true" but frees about 6 GB
        tool-cache: true
        
        # all of these default to true, but feel free to set to
        # "false" if necessary for your workflow
        android: true
        dotnet: true
        haskell: true
        large-packages: true
        swap-storage: true

is equivalent to this:

name: Free Disk Space (Ubuntu)
on: push

jobs:
  free-disk-space:
    runs-on: ubuntu-latest
    steps:

    - name: Free Disk Space (Ubuntu)
      uses: jlumbroso/free-disk-space@main
      with:
        # this might remove tools that are actually needed,
        # when set to "true" but frees about 6 GB
        tool-cache: true

Please don't hesitate to suggest/request additional options.