From 78ef878fb2e290ac368fa672b8f4dff3912f3c59 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Fri, 31 Jan 2025 17:42:25 +0000 Subject: [PATCH] ci: use coursier cache, do not use bloop --- .gitlab-ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 760b3d3..7c9d7b1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,15 @@ stages: default: image: gumjoe/wacc-ci-scala:slim + cache: + - key: + files: + - project.scala + paths: + - .coursier-cache/ + +variables: + SCALA_CACHE: --cache=.coursier-cache/ check_format: stage: check @@ -29,7 +38,7 @@ compile_jvm: stage: compile needs: [] script: - - scala compile --platform jvm -Werror . + - scala compile -Werror --server=false $SCALA_CACHE . artifacts: paths: - .bsp/ @@ -45,4 +54,4 @@ test_jvm: before_script: - git clone https://$EXAMPLES_AUTH@gitlab.doc.ic.ac.uk/lab2425_spring/wacc-examples.git script: - - scala test --platform jvm . + - scala test --server=false $SCALA_CACHE .