Commit 3816fc1d authored by Alfredo Di Napoli's avatar Alfredo Di Napoli

Speed up CI

parent fb109e70
Pipeline #5598 canceled with stages
in 48 minutes and 17 seconds
# Optimising CI speed by using tips from https://blog.nimbleways.com/let-s-make-faster-gitlab-ci-cd-pipelines/
image: adinapoli/gargantext:v3.2
image: adinapoli/gargantext:v3.3
variables:
STACK_ROOT: "${CI_PROJECT_DIR}/.stack-root"
......@@ -37,11 +37,12 @@ cabal:
- .cabal/
policy: pull-push
script:
- nix-shell --run "./bin/update-project-dependencies $CABAL_STORE_DIR && cabal --store-dir=$CABAL_STORE_DIR v2-build --ghc-options='-O2 -fclear-plugins'"
- nix-shell --run "./bin/update-project-dependencies $CABAL_STORE_DIR && cabal --store-dir=$CABAL_STORE_DIR v2-build --flags test-crypto --ghc-options='-O0 -fclear-plugins'"
allow_failure: false
bench:
stage: bench
when: manual # trigger it manually, as it causes full recompilation with optimisations enabled.
cache:
key: cabal.project
paths:
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment