From 4299f4d1c998acad5339d58210eb9d1843d7f714 Mon Sep 17 00:00:00 2001
From: Olivier BICHLER <olivier.bichler@cea.fr>
Date: Thu, 12 Oct 2023 15:06:22 +0200
Subject: [PATCH] Add more compiler versions

---
 .gitlab/ci/build.gitlab-ci.yml | 55 +++++++++++++++++++++++++++++-----
 1 file changed, 47 insertions(+), 8 deletions(-)

diff --git a/.gitlab/ci/build.gitlab-ci.yml b/.gitlab/ci/build.gitlab-ci.yml
index c0525f4ae..c4e66cfa2 100644
--- a/.gitlab/ci/build.gitlab-ci.yml
+++ b/.gitlab/ci/build.gitlab-ci.yml
@@ -17,26 +17,65 @@ build:ubuntu_cpp:
       - build_cpp/
       - install_cpp/
 
-build:ubuntu_cpp_clang:
+build:ubuntu_cpp_gcc10:
   stage: build
   needs: []
   tags:
     - docker
 
   script:
-    - apt install -y clang
+    - apt install -y gcc-10
     - mkdir -p build_cpp
     - mkdir -p install_cpp
     - cd build_cpp
-    - export CXX=/usr/bin/clang++
+    - export CXX=/usr/bin/g++-10
     - cmake -DCMAKE_INSTALL_PREFIX:PATH=../install_cpp -DCMAKE_BUILD_TYPE=Debug -DWERROR=ON -DCOVERAGE=ON ..
     - make -j4 all install
 
-  artifacts:
-    expire_in: 1 week
-    paths:
-      - build_cpp/
-      - install_cpp/
+build:ubuntu_cpp_gcc12:
+  stage: build
+  needs: []
+  tags:
+    - docker
+
+  script:
+    - apt install -y gcc-12
+    - mkdir -p build_cpp
+    - mkdir -p install_cpp
+    - cd build_cpp
+    - export CXX=/usr/bin/g++-12
+    - cmake -DCMAKE_INSTALL_PREFIX:PATH=../install_cpp -DCMAKE_BUILD_TYPE=Debug -DWERROR=ON -DCOVERAGE=ON ..
+    - make -j4 all install
+
+build:ubuntu_cpp_clang12:
+  stage: build
+  needs: []
+  tags:
+    - docker
+
+  script:
+    - apt install -y clang-12
+    - mkdir -p build_cpp
+    - mkdir -p install_cpp
+    - cd build_cpp
+    - export CXX=/usr/bin/clang++-12
+    - cmake -DCMAKE_INSTALL_PREFIX:PATH=../install_cpp -DCMAKE_BUILD_TYPE=Debug -DWERROR=ON -DCOVERAGE=ON ..
+    - make -j4 all install
+
+build:ubuntu_cpp_clang15:
+  stage: build
+  needs: []
+  tags:
+    - docker
+
+  script:
+    - apt install -y clang-15
+    - mkdir -p build_cpp
+    - mkdir -p install_cpp
+    - cd build_cpp
+    - export CXX=/usr/bin/clang++-15
+    - cmake -DCMAKE_INSTALL_PREFIX:PATH=../install_cpp -DCMAKE_BUILD_TYPE=Debug -DWERROR=ON -DCOVERAGE=ON ..
+    - make -j4 all install
 
 build:ubuntu_python:
   stage: build
-- 
GitLab