From c915c7eec957b4562ceeace566e15e26451f6cc8 Mon Sep 17 00:00:00 2001
From: Nicolas Richart <nicolas.richart@epfl.ch>
Date: Wed, 24 Jan 2024 16:13:05 +0100
Subject: [PATCH] missing dependency

---
 .gitlab-ci.yml | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4080e77..3641788 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,7 @@
 
 stages:
   - environment
+  - compilers
   - concretize
   - install
   - deploy
@@ -89,7 +90,7 @@ spack:setup:
 
 
 spack:install_compilers:
-  stage: environment
+  stage: compilers
   extends:
     - .parallel_job
   script:
@@ -111,10 +112,11 @@ spack:install_compilers:
       for compiler in ${COMPILER_LIST_SPECS}; do
         /spack/spack/bin/spack compiler find --scope site $(/spack/spack/bin/spack location -i ${compiler})
       done
-
   artifacts:
     reports:
       junit: spack-install.xml
+  needs:
+    - job: spack:setup
 
 spack:concretize:
   stage: concretize
@@ -123,7 +125,7 @@ spack:concretize:
   script:
     - /spack/spack/bin/spack -e . concretize
   needs:
-    - job: spack:setup
+    - job: spack:install_compilers
   artifacts:
     paths:
       - spack.lock
-- 
GitLab