Commit ec6209c
authored
feat(ci): clear disk space on github hosted runners (#190)
* feat(ci): clear disk space on github hosted runners
Add a step to free disk space before checkout.
* fix(ci): Update cleanup script in build.yml
Removed multiple directories from cleanup except hostedtoolcache.
```table ┌──────────────────────────────┬────────────────┬──────────────────────────┬─────────────────────┐
│ Directory │ Size │ Deletion speed │ Keep? │
├──────────────────────────────┼────────────────┼──────────────────────────┼─────────────────────┤
│ /usr/local/lib/android │ ~14 GB │ Fast (large files) │ Yes │
├──────────────────────────────┼────────────────┼──────────────────────────┼─────────────────────┤
│ /usr/share/dotnet │ ~2.7 GB │ Fast │ Yes │
├──────────────────────────────┼────────────────┼──────────────────────────┼─────────────────────┤
│ /opt/hostedtoolcache │ ~5.9 GB │ Moderate (many files) │ Yes │
├──────────────────────────────┼────────────────┼──────────────────────────┼─────────────────────┤
│ /opt/ghc + /usr/local/.ghcup │ ~5 GB combined │ Moderate │ Optional │
├──────────────────────────────┼────────────────┼──────────────────────────┼─────────────────────┤
│ /usr/share/swift │ ~1.5 GB │ Slow (many object files) │ Drop │
├──────────────────────────────┼────────────────┼──────────────────────────┼─────────────────────┤
│ /usr/lib/jvm │ ~1 GB │ Slow (many small files) │ Drop │
├──────────────────────────────┼────────────────┼──────────────────────────┼─────────────────────┤
│ /usr/local/share/powershell │ ~300 MB │ Fast │ Drop (not worth it) │
└──────────────────────────────┴────────────────┴──────────────────────────┴─────────────────────┘
```
Trimming to just the top 3 gets ~22 GB in ~10-15 seconds:1 parent d7db01c commit ec6209c
1 file changed
Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments