From 3f07514a44d4b4e1a594f5e4ca62d1f3d8b682ed Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Thu, 9 Feb 2023 20:46:40 +0000 Subject: [PATCH] Don't clean up haddock and profiling libs on Linux (#6972) This was initially meant to save space in docker containers, but breaks several use cases and runner images shouldn't have space constraints. Also fixes: https://github.com/haskell/actions/issues/176 --- images/linux/scripts/installers/haskell.sh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/images/linux/scripts/installers/haskell.sh b/images/linux/scripts/installers/haskell.sh index 36d493843..4d0acaf90 100644 --- a/images/linux/scripts/installers/haskell.sh +++ b/images/linux/scripts/installers/haskell.sh @@ -30,13 +30,6 @@ for majorMinorVersion in $minorMajorVersions; do echo "install ghc version $fullVersion..." ghcup install ghc $fullVersion ghcup set ghc $fullVersion - - # remove docs and profiling libs - ghc_dir="$(ghcup whereis basedir)/ghc/$fullVersion" - [ -e "${ghc_dir}" ] || exit 1 - find "${ghc_dir}" \( -name "*_p.a" -o -name "*.p_hi" \) -type f -delete - rm -r "${ghc_dir}"/share/* - unset ghc_bin_dir ghc_dir done echo "install cabal..."