File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
.github/actions/setup-build Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -116,3 +116,18 @@ runs:
116116 - name : " Remove freeze file"
117117 run : rm -f cabal.project.freeze
118118 shell : bash
119+
120+ # Make sure to clear all unneeded `ghcup`` caches.
121+ # At some point, we were running out of disk space, see issue
122+ # https://github.com/haskell/haskell-language-server/issues/4386 for details.
123+ #
124+ # Using "printf" debugging (`du -sh *` and `df -h /`) and binary searching,
125+ # we figured out that `ghcup` caches are taking up a sizable portion of the
126+ # disk space.
127+ # Thus, we remove anything we don't need, especially caches and temporary files.
128+ # For got measure, we also make sure no other tooling versions are
129+ # installed besides the ones we explicitly want.
130+ - name : " Remove ghcup caches"
131+ if : runner.os == 'Linux'
132+ run : ghcup gc --ghc-old --share-dir --hls-no-ghc --cache --tmpdirs --unset
133+ shell : bash
You can’t perform that action at this time.
0 commit comments