Skip to content

lengau/pristine-ubuntu-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pristine Ubuntu

This action removes a lot of the bloat added to GitHub's Ubuntu runners, freeing up disk space and returning the system to something more closely resembling an ordinary Ubuntu machine.

At last check, this action freed up 15 GiB on Ubuntu 22.04 hosted runners and 20 GiB on Ubuntu 24.04 hosted runners.

This will not remove the dependencies needed to run actions,so setup-* actions should still work after running this.

Basic Usage

At the start of your workflow job, add the following:

- name: Pristine Ubuntu
  if: ${{ runner.os == 'Linux' && runner.environment == 'github-hosted' }}
  uses: lengau/pristine-ubuntu-action@v0

Configuration

You can add any of the following (with any non-empty string value) to the with clause of the action to keep that particular item:

  • keep-android
  • keep-ansible
  • keep-azure
  • keep-dotnet
  • keep-haskell
  • keep-homebrew
  • keep-miniconda
  • keep-nginx
  • keep-rustup

Development

We're happy to take bug reports and pull requests.

To remove a tool, find where it's installed in the runner-images build scripts and write a step in action.yaml that reverses that. Include a keep-<tool> input option if most people are going to want to remove the tool. If you think most people will want to keep the tool, flip that with a remove-<tool> option.

Modify the test_correctness.yaml workflow to ensure your configuration options behave as intended.

About

Remove the clutter from GitHub's hosted Ubuntu runners

Resources

License

Stars

Watchers

Forks

Packages

No packages published