blob: 30f050c1f617090567cf2ded181a2d2d08d0fe0d [file] [log] [blame]
Eric Engestrom329f5cd2019-01-20 11:21:45 +00001variables:
Benjamin Tissoires7f8a9a12019-04-02 09:24:00 +02002 UPSTREAM_REPO: mesa/mesa
Benjamin Tissoires7f8a9a12019-04-02 09:24:00 +02003
4include:
5 - project: 'wayland/ci-templates'
Michel Dänzer84fefa22020-01-31 16:57:31 +01006 ref: b7030c2cd0d6ccc5f6d4f8299bafa4daa9240d71
Michel Dänzerd00b1c42019-04-02 16:56:54 +02007 file: '/templates/debian.yml'
Dylan Baker19851c92019-10-23 14:36:19 -07008 - local: '.gitlab-ci/lava-gitlab-ci.yml'
Tomeu Vizoso7b01f722019-09-18 16:03:36 +02009
Eric Engestrom329f5cd2019-01-20 11:21:45 +000010stages:
Eric Engestrom81b98e92019-10-14 23:04:14 +010011 - container
Eric Engestroma0f8a072019-09-11 18:51:46 +010012 - build
Eric Anholt46daaca2019-06-28 16:35:32 -070013 - test
Michel Dänzer8775b742020-01-13 09:45:57 +010014 - success
Eric Engestrom329f5cd2019-01-20 11:21:45 +000015
16
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000017# When to automatically run the CI
Michel Dänzere426f402019-09-06 17:35:52 +020018.ci-run-policy:
Michel Dänzer41797a12019-09-26 09:27:27 +020019 rules:
Michel Dänzer8775b742020-01-13 09:45:57 +010020 # Run pipeline by default for merge requests changing files affecting it
21 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
22 changes: &paths
23 - VERSION
24 - bin/**/*
25 # GitLab CI
26 - .gitlab-ci.yml
27 - .gitlab-ci/**/*
28 # Meson
29 - meson*
30 - build-support/**/*
31 - subprojects/**/*
32 # SCons
33 - SConstruct
34 - scons/**/*
35 - common.py
36 # Source code
37 - include/**/*
38 - src/**/*
39 when: on_success
40 # Run pipeline by default in the main project if files affecting it were
41 # changed
42 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
43 changes:
44 *paths
45 when: on_success
46 # Allow triggering jobs manually on branches of forked projects
Michel Dänzer5a6a88f2020-01-20 18:39:50 +010047 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
Michel Dänzer8775b742020-01-13 09:45:57 +010048 when: manual
49 # Otherwise, most jobs won't run
50 - when: never
Michel Dänzer6140ed32019-03-26 18:39:41 +010051 retry:
52 max: 2
53 when:
54 - runner_system_failure
Eric Engestromac78ca42019-11-12 23:42:21 +000055 # Cancel CI run if a newer commit is pushed to the same branch
56 interruptible: true
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000057
Michel Dänzer8775b742020-01-13 09:45:57 +010058success:
59 stage: success
60 image: debian:stable-slim
61 only:
62 - merge_requests
63 except:
64 changes:
65 *paths
Michel Dänzer2dd0cc62020-01-20 18:34:34 +010066 variables:
67 GIT_STRATEGY: none
Michel Dänzer8775b742020-01-13 09:45:57 +010068 script:
69 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
70
71
Michel Dänzere426f402019-09-06 17:35:52 +020072.ci-deqp-artifacts:
Eric Anholt46daaca2019-06-28 16:35:32 -070073 artifacts:
74 when: always
75 untracked: false
76 paths:
77 # Watch out! Artifacts are relative to the build dir.
78 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
79 - artifacts
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000080
Tomeu Vizoso22d97642019-12-17 11:50:14 +010081# Build the CI docker images.
Michel Dänzerc6c76522019-11-11 18:13:28 +010082#
83# DEBIAN_TAG is the tag of the docker image used by later stage jobs. If the
84# image doesn't exist yet, the container stage job generates it.
85#
86# In order to generate a new image, one should generally change the tag.
87# While removing the image from the registry would also work, that's not
88# recommended except for ephemeral images during development: Replacing
89# an image after a significant amount of time might pull in newer
90# versions of gcc/clang or other packages, which might break the build
91# with older commits using the same tag.
92#
93# After merging a change resulting in generating a new image to the
94# main repository, it's recommended to remove the image from the source
95# repository's container registry, so that the image from the main
96# repository's registry will be used there as well.
Michel Dänzer8a199922019-09-06 17:04:47 +020097
Eric Engestrom81b98e92019-10-14 23:04:14 +010098.container:
99 stage: container
100 extends:
101 - .ci-run-policy
102 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100103 DEBIAN_VERSION: buster-slim
104 REPO_SUFFIX: $CI_JOB_NAME
Michel Dänzer506e9d52019-11-07 20:08:03 +0100105 DEBIAN_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
Eric Engestrom81b98e92019-10-14 23:04:14 +0100106 # no need to pull the whole repo to build the container image
107 GIT_STRATEGY: none
108
Michel Dänzerc6c76522019-11-11 18:13:28 +0100109# Debian 10 based x86 build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100110x86_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200111 extends:
112 - .debian@container-ifnot-exists
Eric Engestrom81b98e92019-10-14 23:04:14 +0100113 - .container
Michel Dänzerc6c76522019-11-11 18:13:28 +0100114 variables:
Dave Airlie8f5a2522020-02-14 15:47:20 +1000115 DEBIAN_TAG: &x86_build "2020-02-15"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000116
Michel Dänzer3a48f452019-11-13 17:43:41 +0100117.use-x86_build:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100118 variables:
119 TAG: *x86_build
120 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
Michel Dänzereb86cba2019-10-10 15:27:17 +0200121 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100122 - x86_build
Michel Dänzereb86cba2019-10-10 15:27:17 +0200123
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100124# Debian 10 based x86 test image for GL
125x86_test-gl:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100126 extends: x86_build
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100127 variables:
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200128 DEBIAN_TAG: &x86_test-gl "2020-02-14"
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100129
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100130# Debian 10 based x86 test image for VK
131x86_test-vk:
132 extends: x86_build
133 variables:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100134 DEBIAN_TAG: &x86_test-vk "2020-01-14"
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100135 # Can only be triggered manually on personal branches because RADV is the only
136 # driver that does Vulkan testing at the moment.
137 rules:
138 # Never build the test image for VK by default in the main project.
139 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
140 when: never
141 # Never build the test image for VK by default for merge requests.
142 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
143 when: never
144 # Otherwise, allow building it manually for personal branches.
145 - when: manual
146
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100147
Michel Dänzerc6c76522019-11-11 18:13:28 +0100148# Debian 9 based x86 build image (old LLVM)
Michel Dänzer3a48f452019-11-13 17:43:41 +0100149x86_build_old:
150 extends: x86_build
Michel Dänzer8a199922019-09-06 17:04:47 +0200151 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100152 DEBIAN_TAG: &x86_build_old "2019-09-18"
153 DEBIAN_VERSION: stretch-slim
Michel Dänzer8a199922019-09-06 17:04:47 +0200154
Michel Dänzer3a48f452019-11-13 17:43:41 +0100155.use-x86_build_old:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100156 variables:
157 TAG: *x86_build_old
158 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
Michel Dänzer88319f22019-09-18 16:17:01 +0200159 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100160 - x86_build_old
Michel Dänzer88319f22019-09-18 16:17:01 +0200161
Michel Dänzerc6c76522019-11-11 18:13:28 +0100162# Debian 10 based ARM build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100163arm_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200164 extends:
165 - .debian@container-ifnot-exists@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +0100166 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -0700167 variables:
Tomeu Vizosoebd071d2020-02-20 11:58:38 +0100168 DEBIAN_TAG: &arm_build "2020-02-24-4"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000169
Michel Dänzerc6c76522019-11-11 18:13:28 +0100170.use-arm_build:
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100171 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100172 TAG: *arm_build
173 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
174 needs:
175 - arm_build
176
177# Debian 10 based ARM test image
178arm_test:
179 extends: arm_build
180 variables:
Eric Anholt658eb692020-01-30 15:53:39 -0800181 DEBIAN_TAG: &arm_test "2020-01-30"
Michel Dänzerc6c76522019-11-11 18:13:28 +0100182
183.use-arm_test:
184 variables:
185 TAG: *arm_test
186 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
187 needs:
188 - meson-arm64
189 - arm_test
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100190
Eric Engestrom81b98e92019-10-14 23:04:14 +0100191
Eric Engestrom46d23c02019-01-20 11:26:53 +0000192# BUILD
193
Dylan Baker06e46472019-10-23 14:21:31 -0700194# Shared between windows and Linux
195.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100196 extends: .ci-run-policy
Eric Engestroma0f8a072019-09-11 18:51:46 +0100197 stage: build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000198 artifacts:
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700199 when: always
200 paths:
201 - _build/meson-logs/*.txt
202 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200203 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700204 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700205
206# Just Linux
207.build-linux:
208 extends: .build-common
Michel Dänzere9de19f2019-04-04 18:01:27 +0200209 variables:
210 CCACHE_COMPILERCHECK: "content"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100211 CCACHE_COMPRESS: "true"
212 CCACHE_DIR: /cache/mesa/ccache
Eric Engestrom23b485c2019-02-12 16:59:27 +0000213 # Use ccache transparently, and print stats before/after
214 before_script:
215 - export PATH="/usr/lib/ccache:$PATH"
216 - export CCACHE_BASEDIR="$PWD"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100217 - ccache --show-stats
Eric Engestrom23b485c2019-02-12 16:59:27 +0000218 after_script:
Eric Engestrom23b485c2019-02-12 16:59:27 +0000219 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000220
Dylan Baker19851c92019-10-23 14:36:19 -0700221.build-windows:
222 extends: .build-common
223 tags:
224 - mesa-windows
225 cache:
226 key: ${CI_JOB_NAME}
227 paths:
228 - subprojects/packagecache
229
Eric Engestrom46d23c02019-01-20 11:26:53 +0000230.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100231 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700232 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100233 - .use-x86_build
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100234 variables:
235 LLVM_VERSION: 9
Eric Engestrom23b485c2019-02-12 16:59:27 +0000236 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200237 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000238
Eric Engestrom06b245b2019-01-23 15:46:10 +0000239.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100240 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700241 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100242 - .use-x86_build
Eric Engestrom06b245b2019-01-23 15:46:10 +0000243 variables:
Eric Anholtcb655d22019-11-06 11:14:14 -0800244 SCONSFLAGS: "-j4"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000245 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200246 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000247
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100248meson-testing:
Michel Dänzere426f402019-09-06 17:35:52 +0200249 extends:
250 - .meson-build
251 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200252 variables:
253 UNWIND: "true"
254 DRI_LOADERS: >
255 -D glx=dri
256 -D gbm=true
257 -D egl=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100258 -D platforms=x11,drm,surfaceless
259 GALLIUM_ST: >
260 -D dri3=true
261 GALLIUM_DRIVERS: "swrast"
Samuel Pitoiset40c6a562019-11-19 14:46:53 +0100262 VULKAN_DRIVERS: amd
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100263 BUILDTYPE: "debugoptimized"
264 script:
265 - .gitlab-ci/meson-build.sh
266 - .gitlab-ci/prepare-artifacts.sh
267
268meson-main:
269 extends: .meson-build
270 variables:
271 UNWIND: "true"
272 DRI_LOADERS: >
273 -D glx=dri
274 -D gbm=true
275 -D egl=true
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200276 -D platforms=x11,wayland,drm,surfaceless
277 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
278 GALLIUM_ST: >
279 -D dri3=true
280 -D gallium-extra-hud=true
281 -D gallium-vdpau=true
282 -D gallium-xvmc=true
283 -D gallium-omx=bellagio
284 -D gallium-va=true
285 -D gallium-xa=true
286 -D gallium-nine=true
287 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100288 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200289 EXTRA_OPTION: >
290 -D osmesa=gallium
291 -D tools=all
Michel Dänzer59fcb012019-10-23 18:42:53 +0200292 script:
293 - .gitlab-ci/meson-build.sh
294 - .gitlab-ci/run-shader-db.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200295
Michel Dänzere5364462019-09-13 11:59:43 +0200296.meson-cross:
297 extends:
298 - .meson-build
Michel Dänzere5364462019-09-13 11:59:43 +0200299 variables:
300 UNWIND: "false"
301 DRI_LOADERS: >
302 -D glx=disabled
303 -D gbm=false
304 -D egl=true
305 -D platforms=surfaceless
306 -D osmesa=none
307 GALLIUM_ST: >
308 -D dri3=false
309 -D gallium-vdpau=false
310 -D gallium-xvmc=false
311 -D gallium-omx=disabled
312 -D gallium-va=false
313 -D gallium-xa=false
314 -D gallium-nine=false
Michel Dänzer65610ec2020-01-30 18:21:15 +0100315 LLVM_VERSION: "8"
Michel Dänzere5364462019-09-13 11:59:43 +0200316
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200317.meson-arm:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100318 extends:
319 - .meson-cross
320 - .use-arm_build
Michel Dänzere5364462019-09-13 11:59:43 +0200321 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200322 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200323 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100324 BUILDTYPE: "debugoptimized"
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200325 tags:
326 - aarch64
327
328meson-armhf:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100329 extends:
330 - .meson-arm
331 - .ci-deqp-artifacts
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200332 variables:
333 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200334 LLVM_VERSION: "7"
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100335 script:
336 - .gitlab-ci/meson-build.sh
337 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200338
339meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200340 extends:
341 - .meson-arm
342 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200343 variables:
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100344 VULKAN_DRIVERS: "freedreno"
Michel Dänzer59fcb012019-10-23 18:42:53 +0200345 script:
346 - .gitlab-ci/meson-build.sh
347 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200348
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100349meson-arm64-build-test:
350 extends:
351 - .meson-arm
352 - .ci-deqp-artifacts
353 variables:
354 VULKAN_DRIVERS: "amd"
355 script:
356 - .gitlab-ci/meson-build.sh
357
Michel Dänzera2cce702019-03-20 15:58:31 +0100358meson-clang:
359 extends: .meson-build
360 variables:
361 UNWIND: "true"
Samuel Pitoiset73621762019-11-19 14:37:32 +0100362 DRI_LOADERS: >
363 -D glvnd=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100364 DRI_DRIVERS: "auto"
365 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100366 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100367 CC: "ccache clang-9"
368 CXX: "ccache clang++-9"
Michel Dänzera2cce702019-03-20 15:58:31 +0100369
Michel Dänzeraaf1b092019-10-30 09:38:20 +0100370.meson-windows:
Dylan Baker19851c92019-10-23 14:36:19 -0700371 extends:
372 - .build-windows
373 before_script:
374 - $ENV:ARCH = "x86"
375 - $ENV:VERSION = "2019\Community"
376 script:
377 - cmd /C .gitlab-ci\meson-build.bat
378
Michel Dänzer82b30092019-05-03 18:19:25 +0200379scons-swr:
380 extends: .scons-build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000381 variables:
Michel Dänzer82b30092019-05-03 18:19:25 +0200382 SCONS_TARGET: "swr=1"
383 SCONS_CHECK_COMMAND: "true"
384 LLVM_VERSION: "6.0"
385
386scons-win64:
387 extends: .scons-build
388 variables:
389 SCONS_TARGET: platform=windows machine=x86_64
390 SCONS_CHECK_COMMAND: "true"
Eric Engestrom89a74672019-01-21 09:42:37 +0000391
Michel Dänzer68977152019-05-03 10:58:48 +0200392meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000393 extends: .meson-build
394 variables:
395 UNWIND: "true"
396 DRI_LOADERS: >
397 -D glx=disabled
398 -D egl=false
399 -D gbm=false
400 GALLIUM_ST: >
401 -D dri3=false
402 -D gallium-vdpau=false
403 -D gallium-xvmc=false
404 -D gallium-omx=disabled
405 -D gallium-va=false
406 -D gallium-xa=false
407 -D gallium-nine=false
408 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200409 script:
410 - export GALLIUM_DRIVERS="r600,radeonsi"
411 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200412 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200413 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200414 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
415 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
416
417meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200418 extends:
419 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100420 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200421 variables:
422 UNWIND: "false"
423 DRI_LOADERS: >
424 -D glx=disabled
425 -D egl=false
426 -D gbm=false
427 -D platforms=drm,surfaceless
428 GALLIUM_DRIVERS: "i915,r600"
429 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200430 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
431 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
432 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000433
Michel Dänzer82b30092019-05-03 18:19:25 +0200434meson-vulkan:
435 extends: .meson-build
436 variables:
437 UNWIND: "false"
438 DRI_LOADERS: >
439 -D glx=disabled
440 -D gbm=false
441 -D egl=false
442 -D platforms=x11,wayland,drm
443 -D osmesa=none
444 GALLIUM_ST: >
445 -D dri3=true
446 -D gallium-vdpau=false
447 -D gallium-xvmc=false
448 -D gallium-omx=disabled
449 -D gallium-va=false
450 -D gallium-xa=false
451 -D gallium-nine=false
452 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200453 -D b_sanitize=undefined
454 -D c_args=-fno-sanitize-recover=all
455 -D cpp_args=-fno-sanitize-recover=all
456 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200457 VULKAN_DRIVERS: intel,amd,freedreno
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200458 EXTRA_OPTION: >
459 -D vulkan-overlay-layer=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200460
Eric Anholt030aa6e2019-08-07 14:05:51 -0700461# While the main point of this build is testing the i386 cross build,
462# we also use this one to test some other options that are exclusive
463# with meson-main's choices (classic swrast and osmesa)
Eric Anholt11aa32a2019-07-11 12:58:28 -0700464meson-i386:
465 extends: .meson-cross
466 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100467 CROSS: i386
Eric Anholt11aa32a2019-07-11 12:58:28 -0700468 VULKAN_DRIVERS: intel
Eric Anholt030aa6e2019-08-07 14:05:51 -0700469 DRI_DRIVERS: "swrast"
470 GALLIUM_DRIVERS: "iris"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700471 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700472 -D vulkan-overlay-layer=true
Eric Anholt030aa6e2019-08-07 14:05:51 -0700473 -D llvm=false
474 -D osmesa=classic
Eric Anholtf6e59912019-12-16 21:23:02 -0800475 -D werror=true
Eric Anholt11aa32a2019-07-11 12:58:28 -0700476
Michel Dänzer65610ec2020-01-30 18:21:15 +0100477meson-s390x:
478 extends:
479 - .meson-cross
Michel Dänzer23037622020-02-10 12:13:04 +0100480 tags:
481 - gstreamer
Michel Dänzer65610ec2020-01-30 18:21:15 +0100482 variables:
483 CROSS: s390x
484 GALLIUM_DRIVERS: "swrast"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100485 script:
486 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
487 - .gitlab-ci/meson-build.sh
488
489meson-ppc64el:
490 extends:
491 - meson-s390x
492 variables:
493 CROSS: ppc64el
Michel Dänzer8be81f82020-01-31 16:07:10 +0100494 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
Michel Dänzer8be81f82020-01-31 16:07:10 +0100495 VULKAN_DRIVERS: "amd"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100496
Dylan Baker449f8312019-10-11 09:04:14 -0700497meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700498 extends: .meson-build
499 variables:
500 UNWIND: "false"
501 DRI_DRIVERS: ""
502 GALLIUM_DRIVERS: "swrast"
503 EXTRA_OPTION: >
504 -Dllvm=false
505 -Dosmesa=gallium
506 --cross-file=.gitlab-ci/x86_64-w64-mingw32
507
Michel Dänzer88e57962019-09-12 11:45:13 +0200508scons:
Eric Engestromd4c6d4d2019-01-28 16:30:36 +0000509 extends: .scons-build
510 variables:
511 SCONS_TARGET: "llvm=1"
Dylan Baker54053bc2019-10-21 09:29:23 -0700512 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
Michel Dänzerbaa50242019-09-12 11:38:06 +0200513 script:
Dylan Baker54053bc2019-10-21 09:29:23 -0700514 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100515 - LLVM_VERSION=9 .gitlab-ci/scons-build.sh
Michel Dänzer8a199922019-09-06 17:04:47 +0200516
517scons-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200518 extends:
519 - scons
Michel Dänzer3a48f452019-11-13 17:43:41 +0100520 - .use-x86_build_old
Michel Dänzerbaa50242019-09-12 11:38:06 +0200521 script:
522 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
Eric Anholt46daaca2019-06-28 16:35:32 -0700523
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100524.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200525 extends:
526 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700527 stage: test
Eric Anholt46daaca2019-06-28 16:35:32 -0700528 variables:
529 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzer576f7b62019-10-22 17:16:52 +0200530 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700531 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
532 - rm -rf install
533 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100534 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700535 artifacts:
Rob Clarkfdaf7772019-11-17 11:33:01 -0800536 when: always
Eric Anholt46daaca2019-06-28 16:35:32 -0700537 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
538 paths:
539 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200540 dependencies:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100541 - meson-testing
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100542
543.test-gl:
544 extends:
545 - .test
546 variables:
547 TAG: *x86_test-gl
548 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200549 needs:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100550 - meson-testing
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100551 - x86_test-gl
Eric Anholt46daaca2019-06-28 16:35:32 -0700552
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100553.test-vk:
554 extends:
555 - .test
556 variables:
557 TAG: *x86_test-vk
558 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
559 needs:
560 - meson-testing
561 - x86_test-vk
562
Michel Dänzer576f7b62019-10-22 17:16:52 +0200563.piglit-test:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100564 extends: .test-gl
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100565 artifacts:
566 when: on_failure
567 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
568 paths:
569 - summary/
Michel Dänzer576f7b62019-10-22 17:16:52 +0200570 variables:
571 LIBGL_ALWAYS_SOFTWARE: 1
572 PIGLIT_NO_WINDOW: 1
573 script:
574 - artifacts/piglit/run.sh
575
576piglit-quick_gl:
577 extends: .piglit-test
578 variables:
579 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000580 NIR_VALIDATE: 0
Michel Dänzer576f7b62019-10-22 17:16:52 +0200581 PIGLIT_OPTIONS: >
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100582 --process-isolation false
Michel Dänzer576f7b62019-10-22 17:16:52 +0200583 -x arb_gpu_shader5
Eric Anholt3097efe2019-12-04 16:13:38 -0800584 -x egl_ext_device_
585 -x egl_ext_platform_device
Matt Turner17c9ec92020-01-21 15:23:39 -0800586 -x ext_timer_query@time-elapsed
Michel Dänzer576f7b62019-10-22 17:16:52 +0200587 -x glx-multithread-clearbuffer
588 -x glx-multithread-shader-compile
589 -x max-texture-size
590 -x maxsize
591 PIGLIT_PROFILES: quick_gl
592
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100593piglit-glslparser:
594 extends: .piglit-test
595 variables:
596 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000597 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100598 PIGLIT_PROFILES: glslparser
599
600piglit-quick_shader:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200601 extends: .piglit-test
602 variables:
603 LP_NUM_THREADS: 1
Dave Airliee6b2af52019-12-03 15:23:45 +1000604 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100605 PIGLIT_PROFILES: quick_shader
Michel Dänzer576f7b62019-10-22 17:16:52 +0200606
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100607.deqp-test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200608 variables:
609 DEQP_SKIPS: deqp-default-skips.txt
610 script:
611 - ./artifacts/deqp-runner.sh
612
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100613.deqp-test-gl:
614 extends:
615 - .test-gl
616 - .deqp-test
617
618.deqp-test-vk:
619 extends:
620 - .test-vk
621 - .deqp-test
622 variables:
623 DEQP_VER: vk
624
Eric Anholt46daaca2019-06-28 16:35:32 -0700625test-llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700626 variables:
627 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800628 DEQP_PARALLEL: 4
Dave Airliee6b2af52019-12-03 15:23:45 +1000629 NIR_VALIDATE: 0
Eric Anholtf08c8102019-11-04 10:54:41 -0800630 # Don't use threads inside llvmpipe, we've already got all 4 cores
631 # busy with DEQP_PARALLEL.
632 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700633 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
634 LIBGL_ALWAYS_SOFTWARE: "true"
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100635 extends: .deqp-test-gl
Eric Anholt553cd822019-08-09 10:32:40 -0700636
637test-softpipe-gles2:
Michel Dänzer128581d2019-09-11 18:55:43 +0200638 extends: test-llvmpipe-gles2
Eric Anholt553cd822019-08-09 10:32:40 -0700639 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700640 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800641 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700642 GALLIUM_DRIVER: "softpipe"
Eric Anholt553cd822019-08-09 10:32:40 -0700643
Eric Anholt52843ec2019-11-05 10:31:29 -0800644test-softpipe-gles3:
645 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700646 variables:
647 DEQP_VER: gles3
Eric Anholt52843ec2019-11-05 10:31:29 -0800648 extends: test-softpipe-gles2
649
650test-softpipe-gles31:
651 parallel: 4
652 variables:
653 DEQP_VER: gles31
654 extends: test-softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700655
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000656arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100657 extends:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100658 - .deqp-test-gl
Michel Dänzerc6c76522019-11-11 18:13:28 +0100659 - .use-arm_test
Eric Anholt6f0dc082019-06-28 16:35:32 -0700660 variables:
661 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700662 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
663 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
664 NIR_VALIDATE: 0
Eric Anholtdd76a6f2019-11-21 05:12:58 -0800665 DEQP_PARALLEL: 4
Rob Clarkfdaf7772019-11-17 11:33:01 -0800666 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholt6f0dc082019-06-28 16:35:32 -0700667 tags:
668 - mesa-cheza
669 dependencies:
670 - meson-arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700671
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000672arm64_a630_gles31:
673 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700674 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200675 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700676
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000677arm64_a630_gles3:
678 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700679 variables:
680 DEQP_VER: gles3
681
Michel Dänzer128581d2019-09-11 18:55:43 +0200682arm64_a306_gles2:
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000683 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700684 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200685 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
686 DEQP_SKIPS: deqp-default-skips.txt
Michel Dänzer128581d2019-09-11 18:55:43 +0200687 tags:
688 - db410c
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100689
690# RADV CI
691.test-radv:
692 variables:
693 VK_DRIVER: radeon
Samuel Pitoisetff2e11b2019-12-06 17:07:35 +0100694 RADV_DEBUG: checkir
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100695 # Can only be triggered manually on personal branches because RADV is the only
696 # driver that does Vulkan testing at the moment.
697 rules:
698 # Never test RADV by default in the main project.
699 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
700 when: never
701 # Never test RADV by default for merge requests.
702 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
703 when: never
704 # Otherwise, allow testing RADV if the test image for VK has been manually
705 # started.
706 - when: on_success
707
708radv_polaris10_vkcts:
709 extends:
710 - .deqp-test-vk
711 - .test-radv
712 variables:
713 DEQP_PARALLEL: 4
714 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
715 tags:
716 - polaris10
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200717
718.traces-test:
719 extends:
720 - .test-gl
721 cache:
722 key: ${CI_JOB_NAME}
723 paths:
724 - .git-lfs-storage/
725 script:
726 - ./artifacts/tracie-runner.sh
727
728llvmpipe-traces:
729 variables:
730 LIBGL_ALWAYS_SOFTWARE: "true"
731 GALLIUM_DRIVER: "llvmpipe"
732 DEVICE_NAME: "vmware-llvmpipe"
733 extends: .traces-test