From 1bb8c2b9d9eafdcb8d10d3e374a8148d8998303b Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Sat, 22 Sep 2018 03:03:00 +0200 Subject: ci: Allow using the cabal store cache for MUCH faster builds This gets shared across all my projects building on the same server, so holy crap this is amazing! Basically _the_ killer `cabal new-build` feature :) --- .gitlab-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1a32e12..7219384 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,11 @@ stages: - build +before_script: + - mkdir -p ~/.cabal /cache/store + - rm -rf ~/.cabal/store + - ln -s /cache/store ~/.cabal/store + job-ghc8.4.3-cabal-install2.2.0.0: image: registry.gitlab.com/dxld/ghc-mod:ghc8.4.3-cabal-install2.2.0.0 stage: build -- cgit v1.2.3