Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support only "removal of unnecessary software" #45

Open
MPV opened this issue Apr 11, 2024 · 2 comments
Open

Support only "removal of unnecessary software" #45

MPV opened this issue Apr 11, 2024 · 2 comments

Comments

@MPV
Copy link

MPV commented Apr 11, 2024

Would you be up for having an input that disables everything except "removal of unnecessary software"?

I'd like to be able to just use (and benefit from) this:
https://github.com/easimon/maximize-build-space/blob/test-report/README.md

(as I have a setup that runs into fatal: write error: No space left on device when using the full setup, which I didn't run into as early before)

@kondratovbr
Copy link

kondratovbr commented Jun 10, 2024

@MPV I've encountered the same issue and ended up just copying the code that removes that software from this very script. Adjust for your needs:

            -   name: Maximize build space
                shell: bash
                run: |
                    df -h
                    sudo rm -rf /usr/share/dotnet
                    sudo rm -rf /usr/local/lib/android
                    sudo rm -rf /opt/ghc
                    sudo rm -rf /opt/hostedtoolcache/CodeQL
                    sudo docker image prune --all --force
                    sudo docker builder prune -a
                    df -h

@geneerik
Copy link

+1 for this. My jobs are sometimes building massive docker images, in which case I need the free space in /var not in the build directory. Skipping the pv and lvm disk provisioning would help me there; /var is part of the root partition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants