Skip to content

Commit af35c4f

Browse files
committed
Delete ghcup caches more aggressively
1 parent 7206c30 commit af35c4f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/scripts/test.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ test_all_hls() {
5858
# After running the test, free up disk space by deleting the unneeded GHC version.
5959
# Helps us staying beneath the 14GB SSD disk limit.
6060
ghcup rm ghc "${bin_noexe/haskell-language-server-/}"
61+
ghcup gc --ghc-old --profiling-libs --share-dir --cache --tmpdirs --unset
6162
else
6263
fail "GHCup failed to install GHC ${bin_noexe/haskell-language-server-/}"
6364
fi
@@ -80,7 +81,9 @@ env
8081

8182
# ensure ghcup
8283
install_ghcup
83-
ghcup install ghc --set 9.4.8
84+
ghcup install ghc --set 9.6.7
85+
# Remove everything that we don't need to stay beneath the 14GB SSD disk limit.
86+
ghcup gc --ghc-old --profiling-libs --share-dir --cache --tmpdirs --unset
8487

8588
(cd .. && ecabal update) # run cabal update outside project dir
8689

0 commit comments

Comments
 (0)