aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2018-09-22 03:03:00 +0200
committerDaniel Gröber <dxld@darkboxed.org>2018-10-10 21:26:27 +0200
commit1bb8c2b9d9eafdcb8d10d3e374a8148d8998303b (patch)
tree18df85ee40d7b73e2fe387afc2359834f59209f3
parentfa494d9a7bde5d45a4e6bc50093292475ce946cf (diff)
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 :)
-rw-r--r--.gitlab-ci.yml5
1 files changed, 5 insertions, 0 deletions
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