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>
extends:
- .build-windows
- .use-windows_build_vs2019
+ - .windows-build-rules
stage: build-misc
script:
- . .\.gitlab-ci\windows\mesa_build.ps1
extends:
- .build-windows
- .use-windows_build_vs2019
+ - .windows-test-rules
stage: layered-backends
dependencies:
- meson-windows-vs2019
- 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