mirror of
https://github.com/haskell/haskell-language-server.git
synced 2024-09-11 08:45:35 +03:00
Clean up GHCs to save disk space in CI
This commit is contained in:
parent
4a1336305e
commit
368627c70e
@ -43,6 +43,7 @@ CP := cp
|
||||
# by default don't run ghcup
|
||||
GHCUP ?= echo
|
||||
GHCUP_GC ?= $(GHCUP) gc
|
||||
GHCUP_RM ?= $(GHCUP) rm
|
||||
|
||||
CABAL_CACHE_BIN ?= echo
|
||||
|
||||
@ -87,7 +88,8 @@ hls:
|
||||
for ghc in $(GHCS) ; do \
|
||||
$(GHCUP) install ghc `echo $$ghc` && \
|
||||
$(GHCUP_GC) -p -s -c -t && \
|
||||
$(MAKE) GHC_VERSION=`echo $$ghc` hls-ghc || exit 1 ; \
|
||||
$(MAKE) GHC_VERSION=`echo $$ghc` hls-ghc || exit 1 && \
|
||||
$(GHCUP_RM) `echo $$ghc` ; \
|
||||
done
|
||||
|
||||
hls-ghc:
|
||||
@ -108,7 +110,8 @@ bindist:
|
||||
for ghc in $(GHCS) ; do \
|
||||
$(GHCUP) install ghc `echo $$ghc` && \
|
||||
$(GHCUP_GC) -p -s -c -t && \
|
||||
$(MAKE) GHC_VERSION=`echo $$ghc` bindist-ghc || exit 1 ; \
|
||||
$(MAKE) GHC_VERSION=`echo $$ghc` bindist-ghc || exit 1 && \
|
||||
$(GHCUP_RM) `echo $$ghc` ; \
|
||||
done
|
||||
$(SED) -e "s/@@HLS_VERSION@@/$(HLS_VERSION)/" \
|
||||
bindist/GNUmakefile.in > "$(BINDIST_OUT_DIR)/GNUmakefile"
|
||||
|
Loading…
Reference in New Issue
Block a user