From ca453910797c07b8dff777f58a25d9c744da7f04 Mon Sep 17 00:00:00 2001
From: jvoisin <julien.voisin@dustri.org>
Date: Tue, 21 Dec 2021 21:38:23 +0100
Subject: [PATCH] Only run static jobs when cmake-related things are modified

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ea2d860f07..987e05da44 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -127,6 +127,13 @@ Ubuntu_GCC_tests_Debug:
 
 Ubuntu_GCC_Static_Deps:
   extends: Ubuntu_GCC
+  rules:
+    - if: $CI_PIPELINE_SOURCE == "push"  
+      changes:
+        - "**/CMakeLists.txt"
+        - "cmake/**/*"
+        - "CI/**/*"
+        - ".gitlab-ci.yml"
   allow_failure: true
   cache:
     key: Ubuntu_GCC_Static_Deps