jlumbroso / free-disk-space

:octocat:⚙️🗑️ A GitHub Action to free disk space on an Ubuntu runner.
MIT License
385 stars 72 forks source link

perf: speed up deletings #26

Open xc2 opened 4 months ago

xc2 commented 4 months ago

Reducing the execution time of the workflow to under 1 minute.

Before After
1m52s 46s
image image
Jayllyz commented 3 months ago

Could be even faster using :

curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
cargo binstall -y rmz
ln -s ~/.cargo/bin/rmz /usr/local/bin/rmz

and then

sudo rmz -f file

All settings to true, most of the time is from docker. image

ffMathy commented 3 months ago

@jlumbroso any chance we can get this merged?

pkordes commented 2 months ago

@Jayllyz - do you have a branch or repo anywhere to test your suggestion?

Jayllyz commented 2 months ago

@Jayllyz - do you have a branch or repo anywhere to test your suggestion?

https://github.com/Jayllyz/free-disk-space/tree/perf/use-rmz