diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 187938d3dcecebd5dd18d9f583a06f1e3f87f480..4309f6f00ef93503cbc92786b1c59b4d44db95aa 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,3 @@
-variables:
-  GIT_STRATEGY: empty
 
 centos_build:
   stage: build
@@ -32,6 +30,8 @@ centos_run:
     - ./run.sh $CI_PROJECT_DIR unused 4 0 0 numerics
 
 mac_build:
+  variables:
+    GIT_STRATEGY: empty
   stage: build
   tags:
     - mac