freedreno: add CI for envytools tools
[mesa.git] / .gitlab-ci / test-source-dep.yml
1 # This file list source dependencies to avoid creating/running jobs
2 # those outcome cannot be changed by the modifications from a branch.
3
4 # Mesa core source file dependencies
5 # ----------------------------------
6 .mesa-rules:
7 rules:
8 - changes: &mesa_core_file_list
9 - .gitlab-ci.yml
10 - .gitlab-ci/**/*
11 - include/**/*
12 - meson.build
13 - SConstruct
14 - src/*
15 - src/compiler/**/*
16 - src/drm-shim/**/*
17 - src/egl/**/*
18 - src/gbm/**/*
19 - src/glx/**/*
20 - src/gtest/**/*
21 - src/hgl/**/*
22 - src/include/**/*
23 - src/loader/**/*
24 - src/mapi/**/*
25 - src/mesa/**/*
26 - src/util/**/*
27
28 # Gallium core source file dependencies
29 # -------------------------------------
30 .gallium-rules:
31 rules:
32 - changes: &gallium_core_file_list
33 - src/gallium/*
34 - src/gallium/auxiliary/**/*
35 - src/gallium/drivers/*
36 - src/gallium/include/**/*
37 - src/gallium/state_trackers/**/*
38 - src/gallium/targets/**/*
39 - src/gallium/tests/**/*
40 - src/gallium/winsys/*
41
42 # Generic rule to not run the job during scheduled pipelines
43 # ----------------------------------------------------------
44 .scheduled_pipelines-rules:
45 rules: &ignore_scheduled_pipelines
46 if: '$CI_PIPELINE_SOURCE == "schedule"'
47 when: never
48
49 .softpipe-rules:
50 stage: softpipe
51 rules:
52 - *ignore_scheduled_pipelines
53 - changes:
54 *mesa_core_file_list
55 when: on_success
56 - changes:
57 *gallium_core_file_list
58 when: on_success
59 - changes:
60 - src/gallium/drivers/softpipe/**/*
61 - src/gallium/winsys/sw/**/*
62 when: on_success
63 - when: never
64
65 .llvmpipe-rules:
66 stage: llvmpipe
67 rules:
68 - *ignore_scheduled_pipelines
69 - changes:
70 *mesa_core_file_list
71 when: on_success
72 - changes:
73 *gallium_core_file_list
74 when: on_success
75 - changes: &llvmpipe_file_list
76 - src/gallium/drivers/llvmpipe/**/*
77 - src/gallium/winsys/sw/**/*
78 when: on_success
79 - when: never
80
81 .freedreno-rules:
82 stage: freedreno
83 rules:
84 - *ignore_scheduled_pipelines
85 - changes:
86 *mesa_core_file_list
87 when: on_success
88 - changes:
89 *gallium_core_file_list
90 when: on_success
91 - changes:
92 # Note: when https://gitlab.com/gitlab-org/gitlab/-/issues/198688
93 # is supported, we can change the src/freedreno/ rule to explicitly
94 # exclude tools, rather than having to explicitly list everything
95 # else
96 - src/freedreno/common/**/*
97 - src/freedreno/drm/**/*
98 - src/freedreno/fdl/**/*
99 - src/freedreno/ir3/**/*
100 - src/freedreno/perfcntrs/**/*
101 - src/freedreno/registers/**/*
102 - src/freedreno/vulkan/**/*
103 - src/gallium/drivers/freedreno/**/*
104 - src/gallium/winsys/freedreno/**/*
105 when: on_success
106 - when: never
107
108 .panfrost-rules:
109 stage: panfrost
110 rules:
111 - *ignore_scheduled_pipelines
112 - changes:
113 *mesa_core_file_list
114 when: on_success
115 - changes:
116 *gallium_core_file_list
117 when: on_success
118 - changes:
119 - src/gallium/drivers/panfrost/**/*
120 - src/gallium/winsys/panfrost/**/*
121 - src/panfrost/**/*
122 when: on_success
123 - when: never
124
125 .lima-rules:
126 stage: lima
127 rules:
128 - *ignore_scheduled_pipelines
129 - changes:
130 *mesa_core_file_list
131 when: on_success
132 - changes:
133 *gallium_core_file_list
134 when: on_success
135 - changes:
136 - src/gallium/drivers/lima/**/*
137 - src/gallium/winsys/lima/**/*
138 - src/lima/**/*
139 when: on_success
140 - when: never
141
142 .radv-rules:
143 rules:
144 - *ignore_scheduled_pipelines
145 - changes:
146 *mesa_core_file_list
147 when: on_success
148 - changes:
149 - src/amd/**/*
150 - src/vulkan/**/*
151 when: on_success
152 - when: never
153
154 .virgl-rules:
155 stage: virgl
156 rules:
157 - *ignore_scheduled_pipelines
158 - changes:
159 *mesa_core_file_list
160 when: on_success
161 - changes:
162 *gallium_core_file_list
163 when: on_success
164 - changes:
165 *llvmpipe_file_list
166 when: on_success
167 - changes:
168 - src/gallium/drivers/virgl/**/*
169 - src/gallium/winsys/virgl/**/*
170 when: on_success
171 - when: never