From 2efffc18b2c43e0b33b404f8c5c5d2eca26d0c18 Mon Sep 17 00:00:00 2001
From: Josh Morgenstern <josh@morgenstern.dev>
Date: Mon, 12 Jul 2021 22:58:31 +0200
Subject: [PATCH] [#86] add osx job

---
 .gitlab-ci.yml | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 33b70018..a8ebaba7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,7 +1,7 @@
 variables:
   RUN:
     value: "all"
-    description: "The tests that should run. Possible values: ubuntu, win, all."
+    description: "The tests that should run. Possible values: ubuntu, win, osx, all."
   GIT_DEPTH: 1
 
 stages:
@@ -51,6 +51,23 @@ build_win10_msvc:
     - cmake -DCMAKE_BUILD_TYPE=Debug ..
     - cmake --build .
 
+build_osx_clang:
+  only:
+    variables:
+      - $RUN =~ /\bosx.*/i || $RUN =~ /\ball.*/i
+  stage: build
+  tags: 
+    - osx-clang-cached
+  variables:
+    GIT_SUBMODULE_STRATEGY: recursive
+  timeout: 10m
+  retry: 1
+  script:
+    - mkdir debug
+    - cd debug
+    - cmake -DCMAKE_BUILD_TYPE=Debug ..
+    - cmake --build .
+
 deploy_doc_develop:
   only:
     variables:
-- 
GitLab