From 8e29d8436a834210c2496c4cdadde13b646868c8 Mon Sep 17 00:00:00 2001
From: Nicolas Richart <nicolas.richart@epfl.ch>
Date: Fri, 23 Feb 2024 13:13:30 +0100
Subject: [PATCH] Add packages to buildcache

---
 .gitlab-ci.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 685e31f..96b68ab 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -107,6 +107,10 @@ spack:install:
       --only-concrete
       --fail-fast
       --show-log-on-error
+    - spack/bin/spack -e stacks/${stack} buildcache create
+      --update-index
+      --key EDC904DCE3D2E84E
+      /buildcache
   after_script:
     - if [ ! -e spack-install.xml ]; then
         echo "{}" > spack-install.xml
-- 
GitLab