roc-1912/Maximize build disk space

Maximize the available disk space for your build job

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Jul 25, 2025
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: roc-1912/maximize-build-space@f58fe666308b3007304dc1923933e04efaf62fcd # no releases — HEAD as of 2026-07-11

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
root-reserve-mbSpace to be left free on the root filesystem, in Megabytes.no1024
temp-reserve-mbSpace to be left free on the temp filesystem (/mnt), in Megabytes.no100
swap-size-mbSwap space to create, in Megabytes.no4096
overprovision-lvmCreate the LVM disk images as sparse files, making the space required for the LVM image files *appear* unused on the hosting volumes until actually allocated. Use with care, this can lead to surprising out-of-disk-space situations. You should prefer adjusting root-reserve-mb/temp-reserve-mb over using this option. nofalse
build-mount-pathAbsolute path to the mount point where the build space will be available, defaults to $GITHUB_WORKSPACE if unset.no
build-mount-path-ownershipOwnership of the mount point path, defaults to standard "runner" user and group.norunner:runner
pv-loop-pathAbsolute file path for the LVM image created on the root filesystem, the default is usually fine.no/pv.img
tmp-pv-loop-pathAbsolute file path for the LVM image created on the temp filesystem, the default is usually fine. Must reside on /mntno/mnt/tmp-pv.img
remove-dotnetRemoves .NET runtime and libraries. (frees ~17 GB)nofalse
remove-androidRemoves Android SDKs and Tools. (frees ~11 GB)nofalse
remove-haskellRemoves GHC (Haskell) artifacts. (frees ~2.7 GB)nofalse
remove-codeqlRemoves CodeQL Action Bundles. (frees ~5.4 GB)nofalse
remove-docker-imagesRemoves cached Docker images. (frees ~3 GB)nofalse
remove-large-packagesRemoves large packages. (frees ~5 GB)nofalse

no outputs