justinthelaw/Maximize GitHub Runner Space
Maximize the available disk space for your test and/or build job
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jun 28, 2026
- License
- MIT
Pinned Snippet
uses: justinthelaw/maximize-github-runner-space@6324f43808f0fd33e16ee8a0141fca09974b38e0 # v0.10.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| cleanup-profile | Cleanup mode: custom (use remove-* flags) or max (enable all components except those in skip-components) | no | max |
| skip-components | Comma-separated components to skip when cleanup-profile=max (e.g. dotnet,android,swift) | no | "" |
| remove-dotnet | Removes .NET runtime and libraries. (frees ~2 GB) | no | false |
| remove-android | Removes Android SDKs and tools. (frees ~9 GB) | no | false |
| remove-haskell | Removes GHC (Haskell) artifacts. (frees ~5 GB) | no | false |
| remove-codeql | Removes CodeQL Action bundles. (frees ~5 GB) | no | false |
| remove-cached-tools | Removes cached setup-action tools. (frees ~8 GB) | no | false |
| swapfile-size | Optional swapfile size. Accepts 0, 1.5GiB, 512MiB, or a plain GiB value like 2. Leaves the runner swapfile untouched when omitted. | no | "" |
| remove-swift | Removes Swift toolchain files. (frees ~2-3 GB) | no | false |
| remove-julia | Removes Julia binaries and libraries. (frees ~1 GB) | no | false |
| remove-java | Purges OpenJDK packages. (frees ~1-2 GB) | no | false |
| remove-browsers | Purges major browsers and webdriver packages. (frees ~1+ GB) | no | false |
| remove-powershell | Purges PowerShell package. | no | false |
| remove-miniconda | Removes Miniconda installation. | no | false |
| remove-homebrew | Removes Homebrew (Linuxbrew) files. | no | false |
| remove-vcpkg | Removes vcpkg installation. | no | false |
| remove-cached-go | Removes Go toolcache entries. | no | false |
| remove-cached-node | Removes Node.js toolcache entries. | no | false |
| remove-cached-python | Removes Python toolcache entries. | no | false |
| remove-cached-pypy | Removes PyPy toolcache entries. | no | false |
| remove-cached-ruby | Removes Ruby toolcache entries. | no | false |
| remove-chrome | Purges Google Chrome. | no | false |
| remove-chromium | Purges Chromium browser. | no | false |
| remove-edge | Purges Microsoft Edge. | no | false |
| remove-firefox | Purges Firefox. | no | false |
| remove-webdrivers | Removes browser webdrivers (chromedriver, geckodriver, edgedriver). | no | false |
| remove-selenium | Removes Selenium server artifacts. | no | false |
| remove-aws-cli | Removes AWS CLI v2. | no | false |
| remove-aws-sam-cli | Removes AWS SAM CLI. | no | false |
| remove-azure-cli | Removes Azure CLI. | no | false |
| remove-gh-cli | Removes GitHub CLI. | no | false |
| remove-gcloud-cli | Removes Google Cloud CLI/SDK. | no | false |
| remove-azcopy | Removes AzCopy. | no | false |
| remove-kubectl | Removes kubectl. | no | false |
| remove-helm | Removes Helm. | no | false |
| remove-kind | Removes kind. | no | false |
| remove-minikube | Removes Minikube. | no | false |
| remove-kustomize | Removes Kustomize. | no | false |
| remove-docker-engine | Purges Docker Engine packages and data directories. | no | false |
| remove-buildah | Removes Buildah. | no | false |
| remove-podman | Removes Podman. | no | false |
| remove-maven | Removes Apache Maven. | no | false |
| remove-gradle | Removes Gradle. | no | false |
| remove-ant | Removes Apache Ant. | no | false |
| remove-php | Removes PHP and common PHP tooling (composer/phpunit). | no | false |
| remove-rust | Removes Rust toolchain (rustup/cargo). | no | false |
| remove-postgresql | Purges PostgreSQL packages and data. | no | false |
| remove-mysql | Purges MySQL/MariaDB packages and data. | no | false |
| remove-apache | Purges Apache HTTP Server. | no | false |
| remove-nginx | Purges Nginx. | no | false |
| remove-docker-images | Removes cached Docker images. (frees ~3 GB) | no | false |
| remove-large-packages | Purges additional large apt packages. (frees ~3 GB) | no | false |
Outputs
no outputs