From 9e81b6493ff42411d8d34ad9f7da5c5c6b59abd5 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Tue, 31 Jan 2023 14:16:20 +0100
Subject: [PATCH] [ci] Add 'ci::win only' tag and pipeline.

---
 .gitlab-ci.yml                   | 6 ++++++
 scripts/ci/pipelines/regular.yml | 3 +--
 scripts/ci/pipelines/win.yml     | 5 +++++
 3 files changed, 12 insertions(+), 2 deletions(-)
 create mode 100644 scripts/ci/pipelines/win.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e32d3a9238c..3f249ede86d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -35,6 +35,9 @@ workflow:
     - if: $CI_MERGE_REQUEST_LABELS =~ /.*ci::mac only.*/
       variables:
         PIPELINE_NAME: "mac only MR pipeline: $CI_MERGE_REQUEST_SOURCE_PROJECT_PATH $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"
+    - if: $CI_MERGE_REQUEST_LABELS =~ /.*ci::win only.*/
+      variables:
+        PIPELINE_NAME: "win only MR pipeline: $CI_MERGE_REQUEST_SOURCE_PROJECT_PATH $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"
     - if: $CI_MERGE_REQUEST_IID # merge requests
       variables:
         PIPELINE_NAME: "MR pipeline: $CI_MERGE_REQUEST_SOURCE_PROJECT_PATH $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"
@@ -63,3 +66,6 @@ include:
   - local: "/scripts/ci/pipelines/mac.yml"
     rules:
       - if: $CI_MERGE_REQUEST_LABELS =~ /.*ci::mac only.*/
+  - local: "/scripts/ci/pipelines/win.yml"
+    rules:
+      - if: $CI_MERGE_REQUEST_LABELS =~ /.*ci::win only.*/
diff --git a/scripts/ci/pipelines/regular.yml b/scripts/ci/pipelines/regular.yml
index cb97178b7a6..9a3e381efcd 100644
--- a/scripts/ci/pipelines/regular.yml
+++ b/scripts/ci/pipelines/regular.yml
@@ -5,13 +5,12 @@ include:
   - local: "/scripts/ci/jobs/pre-commit.yml"
   - local: "/scripts/ci/pipelines/linux.yml"
   - local: "/scripts/ci/pipelines/mac.yml"
+  - local: "/scripts/ci/pipelines/win.yml"
   - local: "/scripts/ci/jobs/build-docs.yml"
-  - local: "/scripts/ci/jobs/build-win.yml"
   - local: "/scripts/ci/jobs/build-container.yml"
   - local: "/scripts/ci/jobs/jupyter.yml"
   - local: "/scripts/ci/jobs/code-quality.yml"
   - local: "/scripts/ci/jobs/code-coverage.yml"
-  - local: "/scripts/ci/jobs/build-gui-win.yml"
   - local: "/scripts/ci/jobs/check-header.yml"
   - local: "/scripts/ci/jobs/include-what-you-use.yml"
   - local: "/scripts/ci/jobs/clang-sanitizer.yml"
diff --git a/scripts/ci/pipelines/win.yml b/scripts/ci/pipelines/win.yml
new file mode 100644
index 00000000000..2ceb8f4819b
--- /dev/null
+++ b/scripts/ci/pipelines/win.yml
@@ -0,0 +1,5 @@
+include:
+  - local: "/scripts/ci/extends/*.yml"
+  - local: "/scripts/ci/jobs/meta.yml"
+  - local: "/scripts/ci/jobs/build-win.yml"
+  - local: "/scripts/ci/jobs/build-gui-win.yml"
-- 
GitLab