diff --git a/.gitlab/build.yml b/.gitlab/build.yml
index dff1db4cba7c310b6874a7b3f515d462897d5072..d6e8941f31159555c30b7e22ebdbfc1c6d39219e 100644
--- a/.gitlab/build.yml
+++ b/.gitlab/build.yml
@@ -51,7 +51,7 @@ build_starpu_simgrid:
     VERSION: starpu_simgrid
 
 build_starpu_macosx:
-  extends: .only-master
+  extends: .only-branches
   stage: build
   tags: ['macosx']
   variables:
diff --git a/.gitlab/test_starpu.yml b/.gitlab/test_starpu.yml
index c0ec2c9ac9ee495b39451871073850b3cdcb1175..21fd6611d62035e85e2447f33845858f11de9868 100644
--- a/.gitlab/test_starpu.yml
+++ b/.gitlab/test_starpu.yml
@@ -79,7 +79,7 @@ test_starpu_mpi_z:
     TESTS_RESTRICTION: "-R \"_${CATEGORY}_${PRECISION}\""
 
 test_starpu_shm_s_macosx:
-  extends: .only-master
+  extends: .only-branches
   stage: test
   tags: ['macosx']
   needs: [build_starpu_macosx]
@@ -94,4 +94,4 @@ test_starpu_shm_s_macosx:
     expire_in: 2 days
     when: always
     reports:
-      junit: chameleon_macosx.junit
\ No newline at end of file
+      junit: chameleon_macosx.junit