Skip to content

Commit

Permalink
More ways added to free up disk space
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaGarg8 authored Apr 12, 2024
1 parent 2ac9ce9 commit a446096
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ If not: please go on, there's nothing to see here.
This action maximizes the available disk space on public shared GitHub runners, by

- ~~Utilizing space on an otherwise unused temp disk~~
- Optionally removing unnecessary preinstalled software (Only this way out)
- ~~Optionally resizing the SWAP space~~
- Optionally removing unnecessary preinstalled software
- Optionally removing the swapfile

This shall make you gain aroud 19GB on Ubuntu 20.04
This shall make you gain around 32GB on Ubuntu 22.04

The idea came up when I tried to build a Ubuntu Linux Kernel DEB on Github, and the Job aborted due to disk space issues.

Expand All @@ -32,7 +32,7 @@ At the time of writing, public [Github-hosted runners](https://docs.github.com/e

This action does the following:

1. (Optionally) removes unwanted preinstalled software
1. (Optionally) removes unwanted preinstalled software and the swapfile
1. ~~Concatenates the free space on `/` and `/mnt` (the temp disk) to an LVM volume group~~
1. ~~Creates a swap partition and a build volume on that volume group~~
1. ~~Mounts the build volume back to a given path (`${GITHUB_WORKSPACE}` by default)~~
Expand All @@ -57,7 +57,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: AdityaGarg8/remove-unwanted-software@v2
uses: AdityaGarg8/remove-unwanted-software@v3
with:
remove-android: 'true'
- name: Checkout
Expand All @@ -75,23 +75,35 @@ All inputs are optional and default to the following, gaining about 7-8 GB addit
```yaml
remove-dotnet:
description: 'Removes .NET runtime and libraries.'
description: 'Removes .NET runtime and libraries. (frees ~2 GB)'
required: false
default: 'false'
remove-android:
description: 'Removes Android SDKs and Tools.'
description: 'Removes Android SDKs and Tools. (frees ~9 GB)'
required: false
default: 'false'
remove-haskell:
description: 'Removes GHC (Haskell) artifacts.'
description: 'Removes GHC (Haskell) artifacts. (frees ~5.2 GB)'
required: false
default: 'false'
remove-codeql:
description: 'Removes CodeQL Action Bundles.'
description: 'Removes CodeQL Action Bundles. (frees ~5.4 GB)'
required: false
default: 'false'
remove-docker-images:
description: 'Removes cached Docker images.'
description: 'Removes cached Docker images. (frees ~3.2 GB)'
required: false
default: 'false'
remove-large-packages:
description: 'Removes unwanted large Apt packages. (frees ~3.1 GB)'
required: false
default: 'false'
remove-cached-tools:
description: 'Removes cached tools used by GitHub's setup actions. (frees ~8.3 GB)'
required: false
default: 'false'
remove-swap:
description: 'Removes the Swapfile. (frees ~4 GB)'
required: false
default: 'false'
```
Expand Down

0 comments on commit a446096

Please sign in to comment.