diff --git a/gitlab-ci.yml b/gitlab-ci.yml
index f9496fcdc80c..b7e655666347 100644
--- a/gitlab-ci.yml
+++ b/gitlab-ci.yml
@@ -182,14 +182,6 @@ build-full:debian:12:
       - ARCH: amd64
         CC: gcc-12
         CXX: g++-12
-      - ARCH: amd64
-        BUILD_TYPE: release
-        CC: gcc-12
-        CXX: g++-12
-        MESON_OPTIONS: >-
-          ${MESON_ALL_OPTIONS}
-          -D b_sanitize=none
-          -D cpp_debugstl=false
       - ARCH: amd64
         CC: clang
         CXX: clang++
@@ -197,16 +189,6 @@ build-full:debian:12:
           ${MESON_ALL_OPTIONS}
           ${MESON_CLANG_LIBCPP_OPTIONS}
           -D qcam=disabled
-      - ARCH: amd64
-        BUILD_TYPE: release
-        CC: clang
-        CXX: clang++
-        MESON_OPTIONS: >-
-          ${MESON_ALL_OPTIONS}
-          ${MESON_CLANG_LIBCPP_OPTIONS}
-          -D b_sanitize=none
-          -D cpp_debugstl=false
-          -D qcam=disabled
 
 build-full:debian:13:
   extends:
@@ -231,6 +213,14 @@ build-full:debian:13:
           ${MESON_ALL_OPTIONS}
           -D documentation=enabled
           -D doc_werror=true
+      - ARCH: amd64
+        BUILD_TYPE: release
+        CC: gcc-14
+        CXX: g++-14
+        MESON_OPTIONS: >-
+          ${MESON_ALL_OPTIONS}
+          -D b_sanitize=none
+          -D cpp_debugstl=false
       - ARCH: amd64
         CC: clang
         CXX: clang++
@@ -239,6 +229,15 @@ build-full:debian:13:
           # with clang 18 or later due to https://github.com/mesonbuild/meson/issues/13812
           - ${MESON_ALL_OPTIONS} ${MESON_CLANG_LIBCPP_OPTIONS} -D qcam=disabled -D cpp_debugstl=false
           - ${MESON_ALL_OPTIONS} ${MESON_CLANG_LIBSTDCPP_OPTIONS}
+      - ARCH: amd64
+        BUILD_TYPE: release
+        CC: clang
+        CXX: clang++
+        MESON_OPTIONS: >-
+          ${MESON_ALL_OPTIONS}
+          ${MESON_CLANG_LIBSTDCPP_OPTIONS}
+          -D b_sanitize=none
+          -D cpp_debugstl=false
       - ARCH: armhf
       - ARCH: arm64
 
