mirror of
https://github.com/actions/runner-images.git
synced 2025-12-16 06:40:32 +00:00
Don't clean up haddock and profiling libs on MacOS (#7069)
This was initially meant to save space in docker containers, but breaks several use cases and runner images shouldn't have space constraints.
This commit is contained in:
@@ -14,13 +14,6 @@ for majorMinorVersion in $minorMajorVersions; do
|
|||||||
echo "install ghc version $fullVersion..."
|
echo "install ghc version $fullVersion..."
|
||||||
ghcup install $fullVersion
|
ghcup install $fullVersion
|
||||||
ghcup set $fullVersion
|
ghcup set $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
|
done
|
||||||
|
|
||||||
echo "install cabal..."
|
echo "install cabal..."
|
||||||
|
|||||||
Reference in New Issue
Block a user