CI: Add Windows source dependency map
authorDaniel Stone <daniels@collabora.com>
Fri, 11 Dec 2020 10:41:32 +0000 (10:41 +0000)
committerMarge Bot <eric+marge@anholt.net>
Fri, 11 Dec 2020 17:09:56 +0000 (17:09 +0000)
Now that we've soaked the Windows build in and it's working well,
restrict it to only running on given pipelines, albeit in a somewhat
surprising way.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8053>

.gitlab-ci.yml
.gitlab-ci/test-source-dep.yml

index d2072a259f11617087e4ad4362a090b387ec461a..fbff9d20497d6e7528267c7f48832ff454e343da 100644 (file)
@@ -807,6 +807,7 @@ meson-windows-vs2019:
   extends:
     - .build-windows
     - .use-windows_build_vs2019
+    - .windows-build-rules
   stage: build-misc
   script:
     - . .\.gitlab-ci\windows\mesa_build.ps1
@@ -818,6 +819,7 @@ test-d3d12-windows:
   extends:
     - .build-windows
     - .use-windows_build_vs2019
+    - .windows-test-rules
   stage: layered-backends
   dependencies:
     - meson-windows-vs2019
index 80af75a305cef0c6d38bcd6948ea47b4ec3b2b45..1d418f2165e1e0556c3e66979f118ad7016d51c7 100644 (file)
       - src/amd/registers/**/*
       when: on_success
     - when: never
+
+# Unfortunately YAML doesn't let us concatenate arrays, so we have to do the
+# rules duplication manually
+.windows-build-rules:
+  rules:
+    - changes: 
+        *mesa_core_file_list
+      when: on_success
+    - changes:
+        *gallium_core_file_list
+      when: on_success
+    - changes: &d3d12_file_list
+      - src/gallium/drivers/d3d12/**/*
+      - src/microsoft/**/*
+      - src/gallium/frontends/wgl/*
+      - src/gallium/winsys/d3d12/wgl/*
+      - src/gallium/targets/libgl-gdi/*
+      - src/gallium/targets/libgl-d3d12/*
+      when: on_success
+    - when: never
+
+.windows-test-rules:
+  rules:
+    - *ignore_scheduled_pipelines
+    - changes: 
+        *mesa_core_file_list
+      when: on_success
+    - changes:
+        *gallium_core_file_list
+      when: on_success
+    - changes: *d3d12_file_list
+      when: on_success
+    - when: never