slimhub_actions/README.md

77 lines
2 KiB
Markdown
Raw Normal View History

2021-01-05 08:37:10 +01:00
# *rokibhasansagar/slimhub_actions@main*
![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/rokibhasansagar/slimhub_actions?label=Latest%20Tag&?cacheSeconds=600)
2021-01-05 08:37:10 +01:00
### *GitHub Actions Cleaner*
A simple composite run steps action to clean the GitHub Actions environment to bare minimum.
When you don't really need any extra software rather than core functions of Ubuntu itself, you would want to use this.
Github Actions give you a 84GB storage drive which is loaded up to 62GB with lots of programs inbuilt.
That gives you only 22GB playground.
2021-01-05 08:37:10 +01:00
But with this action, you can gain up to 78GB! That means around 56GB can be freed!
2021-01-05 08:37:10 +01:00
>More space can be gained. Work is undergoing to achieve that.
## *Requirement*
Nothing really, just your Actions Runner needs to be run on **ubuntu-20.04**.
```yaml
jobs:
build:
runs-on: ubuntu-20.04
```
Bionic support will be added later.
## *How To Use*
```yaml
steps:
# ...
# You might want to Checkout your repo first, but not necessary.
# Cleanup The Actions Workspace Using Custom Composite Run Actions
- uses: rokibhasansagar/slimhub_actions@main
# That's it! Now use your normal steps
# ...
```
## *Things Removed*
The main programs removed by this action are -
```text
- adoptopenjdk-11 & adoptopenjdk-8
- android-sdk and ndk
2021-01-05 08:37:10 +01:00
- ant, apache-maven, gradle, hhvm, julia, lein
- swift, miniconda
- azure-cli, aws-cli, vim
2021-01-05 08:37:10 +01:00
- buildah, ghc
- cabal*
- clang-9,clang-8, llvm-8 & lld-8
- Docker Image Caches
- dotnet, graalvm, powershell
2021-01-05 08:37:10 +01:00
- erlang, php*, ruby, rake, rust & swig
- gcc-7, g++-7, cpp-7
- gcc-8, g++-8, cpp-8
- groff-base
- firefox
- google*
- Homebrew
- hostedtoolcache preconfigured packages
- heroku
- imagemagick*
- libreoffice*
- man-db & manpages
- mongodb, mysql & postgresql
- mono*
- mercurial, subversion
- node_modules
- phantomjs, chrome_driver, gecko_driver, xvfb
2021-01-05 08:37:10 +01:00
- python2 & pip local packages
- podman
```
*Yet, More To Remove In The Future*
## *Inspired By*
- [@Area69Lab - Alien technology ahead](https://github.com/Area69Lab)
- [@ElytrA8 Shéikh Adnan](https://github.com/ElytrA8)