blob: 62cdb24a41251ca9465c60dde956cbd6e36af74c [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
Michel Dänzercc9493f2020-02-27 18:27:56 +010012 - meson-x86_64
13 - scons
14 - meson-misc
15 - llvmpipe
16 - softpipe
17 - freedreno
18 - panfrost
19 - misc-tests
Michel Dänzer8775b742020-01-13 09:45:57 +010020 - success
Eric Engestrom329f5cd2019-01-20 11:21:45 +000021
22
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000023# When to automatically run the CI
Michel Dänzere426f402019-09-06 17:35:52 +020024.ci-run-policy:
Michel Dänzer41797a12019-09-26 09:27:27 +020025 rules:
Michel Dänzer8775b742020-01-13 09:45:57 +010026 # Run pipeline by default for merge requests changing files affecting it
27 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
28 changes: &paths
29 - VERSION
30 - bin/**/*
31 # GitLab CI
32 - .gitlab-ci.yml
33 - .gitlab-ci/**/*
34 # Meson
35 - meson*
36 - build-support/**/*
37 - subprojects/**/*
38 # SCons
39 - SConstruct
40 - scons/**/*
41 - common.py
42 # Source code
43 - include/**/*
44 - src/**/*
45 when: on_success
46 # Run pipeline by default in the main project if files affecting it were
47 # changed
48 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
49 changes:
50 *paths
51 when: on_success
52 # Allow triggering jobs manually on branches of forked projects
Michel Dänzer5a6a88f2020-01-20 18:39:50 +010053 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
Michel Dänzer8775b742020-01-13 09:45:57 +010054 when: manual
55 # Otherwise, most jobs won't run
56 - when: never
Michel Dänzer6140ed32019-03-26 18:39:41 +010057 retry:
58 max: 2
59 when:
60 - runner_system_failure
Eric Engestromac78ca42019-11-12 23:42:21 +000061 # Cancel CI run if a newer commit is pushed to the same branch
62 interruptible: true
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000063
Michel Dänzer8775b742020-01-13 09:45:57 +010064success:
65 stage: success
66 image: debian:stable-slim
67 only:
68 - merge_requests
69 except:
70 changes:
71 *paths
Michel Dänzer2dd0cc62020-01-20 18:34:34 +010072 variables:
73 GIT_STRATEGY: none
Michel Dänzer8775b742020-01-13 09:45:57 +010074 script:
75 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
76
77
Michel Dänzere426f402019-09-06 17:35:52 +020078.ci-deqp-artifacts:
Eric Anholt46daaca2019-06-28 16:35:32 -070079 artifacts:
80 when: always
81 untracked: false
82 paths:
83 # Watch out! Artifacts are relative to the build dir.
84 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
85 - artifacts
Eric Engestrom7f5d9c22019-02-22 15:52:08 +000086
Tomeu Vizoso22d97642019-12-17 11:50:14 +010087# Build the CI docker images.
Michel Dänzerc6c76522019-11-11 18:13:28 +010088#
89# DEBIAN_TAG is the tag of the docker image used by later stage jobs. If the
90# image doesn't exist yet, the container stage job generates it.
91#
92# In order to generate a new image, one should generally change the tag.
93# While removing the image from the registry would also work, that's not
94# recommended except for ephemeral images during development: Replacing
95# an image after a significant amount of time might pull in newer
96# versions of gcc/clang or other packages, which might break the build
97# with older commits using the same tag.
98#
99# After merging a change resulting in generating a new image to the
100# main repository, it's recommended to remove the image from the source
101# repository's container registry, so that the image from the main
102# repository's registry will be used there as well.
Michel Dänzer8a199922019-09-06 17:04:47 +0200103
Eric Engestrom81b98e92019-10-14 23:04:14 +0100104.container:
105 stage: container
106 extends:
107 - .ci-run-policy
108 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100109 DEBIAN_VERSION: buster-slim
110 REPO_SUFFIX: $CI_JOB_NAME
Michel Dänzer506e9d52019-11-07 20:08:03 +0100111 DEBIAN_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
Eric Engestrom81b98e92019-10-14 23:04:14 +0100112 # no need to pull the whole repo to build the container image
113 GIT_STRATEGY: none
114
Michel Dänzerc6c76522019-11-11 18:13:28 +0100115# Debian 10 based x86 build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100116x86_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200117 extends:
118 - .debian@container-ifnot-exists
Eric Engestrom81b98e92019-10-14 23:04:14 +0100119 - .container
Michel Dänzerc6c76522019-11-11 18:13:28 +0100120 variables:
Dave Airlie8f5a2522020-02-14 15:47:20 +1000121 DEBIAN_TAG: &x86_build "2020-02-15"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000122
Michel Dänzer3a48f452019-11-13 17:43:41 +0100123.use-x86_build:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100124 variables:
125 TAG: *x86_build
126 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
Michel Dänzereb86cba2019-10-10 15:27:17 +0200127 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100128 - x86_build
Michel Dänzereb86cba2019-10-10 15:27:17 +0200129
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100130# Debian 10 based x86 test image for GL
131x86_test-gl:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100132 extends: x86_build
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100133 variables:
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200134 DEBIAN_TAG: &x86_test-gl "2020-02-14"
Michel Dänzeraebf43d2019-11-05 18:52:24 +0100135
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100136# Debian 10 based x86 test image for VK
137x86_test-vk:
138 extends: x86_build
139 variables:
Samuel Pitoiset93fcc9a2020-02-26 09:32:41 +0100140 DEBIAN_TAG: &x86_test-vk "2020-03-05"
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100141 # Can only be triggered manually on personal branches because RADV is the only
142 # driver that does Vulkan testing at the moment.
143 rules:
144 # Never build the test image for VK by default in the main project.
145 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
146 when: never
147 # Never build the test image for VK by default for merge requests.
148 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
149 when: never
150 # Otherwise, allow building it manually for personal branches.
151 - when: manual
152
Samuel Pitoisetf2a594f2019-11-18 09:23:18 +0100153
Michel Dänzerc6c76522019-11-11 18:13:28 +0100154# Debian 9 based x86 build image (old LLVM)
Michel Dänzer3a48f452019-11-13 17:43:41 +0100155x86_build_old:
156 extends: x86_build
Michel Dänzer8a199922019-09-06 17:04:47 +0200157 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100158 DEBIAN_TAG: &x86_build_old "2019-09-18"
159 DEBIAN_VERSION: stretch-slim
Michel Dänzer8a199922019-09-06 17:04:47 +0200160
Michel Dänzer3a48f452019-11-13 17:43:41 +0100161.use-x86_build_old:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100162 variables:
163 TAG: *x86_build_old
164 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
Michel Dänzer88319f22019-09-18 16:17:01 +0200165 needs:
Michel Dänzer3a48f452019-11-13 17:43:41 +0100166 - x86_build_old
Michel Dänzer88319f22019-09-18 16:17:01 +0200167
Michel Dänzerc6c76522019-11-11 18:13:28 +0100168# Debian 10 based ARM build image
Michel Dänzer3a48f452019-11-13 17:43:41 +0100169arm_build:
Michel Dänzere426f402019-09-06 17:35:52 +0200170 extends:
171 - .debian@container-ifnot-exists@arm64v8
Eric Engestrom81b98e92019-10-14 23:04:14 +0100172 - .container
Eric Anholt6f0dc082019-06-28 16:35:32 -0700173 variables:
Eric Anholt33f38602020-01-28 12:02:39 -0800174 DEBIAN_TAG: &arm_build "2020-02-26"
Eric Engestrom46d23c02019-01-20 11:26:53 +0000175
Michel Dänzerc6c76522019-11-11 18:13:28 +0100176.use-arm_build:
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100177 variables:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100178 TAG: *arm_build
179 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
180 needs:
181 - arm_build
182
183# Debian 10 based ARM test image
184arm_test:
185 extends: arm_build
186 variables:
Eric Anholt658eb692020-01-30 15:53:39 -0800187 DEBIAN_TAG: &arm_test "2020-01-30"
Michel Dänzerc6c76522019-11-11 18:13:28 +0100188
189.use-arm_test:
190 variables:
191 TAG: *arm_test
192 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
193 needs:
194 - meson-arm64
195 - arm_test
Michel Dänzerb4d3ae22019-11-04 09:54:09 +0100196
Eric Engestrom81b98e92019-10-14 23:04:14 +0100197
Eric Engestrom46d23c02019-01-20 11:26:53 +0000198# BUILD
199
Dylan Baker06e46472019-10-23 14:21:31 -0700200# Shared between windows and Linux
201.build-common:
Eric Engestromaba78c22019-10-14 23:52:58 +0100202 extends: .ci-run-policy
Eric Engestrom46d23c02019-01-20 11:26:53 +0000203 artifacts:
Eric Anholtdd3d0b22019-07-24 09:27:48 -0700204 when: always
205 paths:
206 - _build/meson-logs/*.txt
207 # scons:
Michel Dänzer5229f272019-07-26 12:20:41 +0200208 - build/*/config.log
Eric Anholtf60defa2019-04-10 15:59:12 -0700209 - shader-db
Dylan Baker06e46472019-10-23 14:21:31 -0700210
211# Just Linux
212.build-linux:
213 extends: .build-common
Michel Dänzere9de19f2019-04-04 18:01:27 +0200214 variables:
215 CCACHE_COMPILERCHECK: "content"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100216 CCACHE_COMPRESS: "true"
217 CCACHE_DIR: /cache/mesa/ccache
Eric Engestrom23b485c2019-02-12 16:59:27 +0000218 # Use ccache transparently, and print stats before/after
219 before_script:
220 - export PATH="/usr/lib/ccache:$PATH"
221 - export CCACHE_BASEDIR="$PWD"
Michel Dänzer32618ee2019-11-20 09:11:35 +0100222 - ccache --show-stats
Eric Engestrom23b485c2019-02-12 16:59:27 +0000223 after_script:
Eric Engestrom23b485c2019-02-12 16:59:27 +0000224 - ccache --show-stats
Eric Engestrom46d23c02019-01-20 11:26:53 +0000225
Dylan Baker19851c92019-10-23 14:36:19 -0700226.build-windows:
227 extends: .build-common
228 tags:
229 - mesa-windows
230 cache:
231 key: ${CI_JOB_NAME}
232 paths:
233 - subprojects/packagecache
234
Eric Engestrom46d23c02019-01-20 11:26:53 +0000235.meson-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100236 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700237 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100238 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100239 stage: meson-x86_64
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100240 variables:
241 LLVM_VERSION: 9
Eric Engestrom23b485c2019-02-12 16:59:27 +0000242 script:
Michel Dänzercc2b3a92019-05-03 10:49:43 +0200243 - .gitlab-ci/meson-build.sh
Eric Engestrom46d23c02019-01-20 11:26:53 +0000244
Eric Engestrom06b245b2019-01-23 15:46:10 +0000245.scons-build:
Eric Engestromaba78c22019-10-14 23:52:58 +0100246 extends:
Dylan Baker06e46472019-10-23 14:21:31 -0700247 - .build-linux
Michel Dänzer3a48f452019-11-13 17:43:41 +0100248 - .use-x86_build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100249 stage: scons
Eric Engestrom06b245b2019-01-23 15:46:10 +0000250 variables:
Eric Anholtcb655d22019-11-06 11:14:14 -0800251 SCONSFLAGS: "-j4"
Eric Engestrom06b245b2019-01-23 15:46:10 +0000252 script:
Michel Dänzer0374aac2019-09-12 11:34:43 +0200253 - .gitlab-ci/scons-build.sh
Eric Engestrom06b245b2019-01-23 15:46:10 +0000254
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100255meson-testing:
Michel Dänzere426f402019-09-06 17:35:52 +0200256 extends:
257 - .meson-build
258 - .ci-deqp-artifacts
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200259 variables:
260 UNWIND: "true"
261 DRI_LOADERS: >
262 -D glx=dri
263 -D gbm=true
264 -D egl=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100265 -D platforms=x11,drm,surfaceless
266 GALLIUM_ST: >
267 -D dri3=true
268 GALLIUM_DRIVERS: "swrast"
Samuel Pitoiset40c6a562019-11-19 14:46:53 +0100269 VULKAN_DRIVERS: amd
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100270 BUILDTYPE: "debugoptimized"
Eric Anholt3c7c0212019-12-16 21:23:02 -0800271 EXTRA_OPTION: >
272 -D werror=true
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100273 script:
274 - .gitlab-ci/meson-build.sh
275 - .gitlab-ci/prepare-artifacts.sh
276
277meson-main:
278 extends: .meson-build
279 variables:
280 UNWIND: "true"
281 DRI_LOADERS: >
282 -D glx=dri
283 -D gbm=true
284 -D egl=true
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200285 -D platforms=x11,wayland,drm,surfaceless
286 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
287 GALLIUM_ST: >
288 -D dri3=true
289 -D gallium-extra-hud=true
290 -D gallium-vdpau=true
291 -D gallium-xvmc=true
292 -D gallium-omx=bellagio
293 -D gallium-va=true
294 -D gallium-xa=true
295 -D gallium-nine=true
296 -D gallium-opencl=disabled
Samuel Pitoisete6d26d72019-11-19 14:36:02 +0100297 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 +0200298 EXTRA_OPTION: >
299 -D osmesa=gallium
300 -D tools=all
Michel Dänzer59fcb012019-10-23 18:42:53 +0200301 script:
302 - .gitlab-ci/meson-build.sh
303 - .gitlab-ci/run-shader-db.sh
Michel Dänzer42f8d5a2019-08-28 12:01:02 +0200304
Michel Dänzere5364462019-09-13 11:59:43 +0200305.meson-cross:
306 extends:
307 - .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100308 stage: meson-misc
Michel Dänzere5364462019-09-13 11:59:43 +0200309 variables:
310 UNWIND: "false"
311 DRI_LOADERS: >
312 -D glx=disabled
313 -D gbm=false
314 -D egl=true
315 -D platforms=surfaceless
316 -D osmesa=none
317 GALLIUM_ST: >
318 -D dri3=false
319 -D gallium-vdpau=false
320 -D gallium-xvmc=false
321 -D gallium-omx=disabled
322 -D gallium-va=false
323 -D gallium-xa=false
324 -D gallium-nine=false
Michel Dänzer65610ec2020-01-30 18:21:15 +0100325 LLVM_VERSION: "8"
Michel Dänzere5364462019-09-13 11:59:43 +0200326
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200327.meson-arm:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100328 extends:
329 - .meson-cross
330 - .use-arm_build
Michel Dänzere5364462019-09-13 11:59:43 +0200331 variables:
Michel Dänzere5364462019-09-13 11:59:43 +0200332 VULKAN_DRIVERS: freedreno
Michel Dänzer793f6b32019-10-08 19:48:41 +0200333 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100334 BUILDTYPE: "debugoptimized"
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200335 tags:
336 - aarch64
337
338meson-armhf:
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100339 extends:
340 - .meson-arm
341 - .ci-deqp-artifacts
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200342 variables:
343 CROSS: armhf
Michel Dänzer793f6b32019-10-08 19:48:41 +0200344 LLVM_VERSION: "7"
Eric Anholt25741582020-02-24 10:31:33 -0800345 EXTRA_OPTION: >
346 -D llvm=false
Tomeu Vizoso22d97642019-12-17 11:50:14 +0100347 script:
348 - .gitlab-ci/meson-build.sh
349 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200350
351meson-arm64:
Michel Dänzer163ec5d2019-10-08 19:46:11 +0200352 extends:
353 - .meson-arm
354 - .ci-deqp-artifacts
Michel Dänzere5364462019-09-13 11:59:43 +0200355 variables:
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100356 VULKAN_DRIVERS: "freedreno"
Eric Anholt25741582020-02-24 10:31:33 -0800357 EXTRA_OPTION: >
358 -D llvm=false
Michel Dänzer59fcb012019-10-23 18:42:53 +0200359 script:
360 - .gitlab-ci/meson-build.sh
361 - .gitlab-ci/prepare-artifacts.sh
Michel Dänzere5364462019-09-13 11:59:43 +0200362
Rohan Garg9c0bbba2020-02-20 16:37:48 +0100363meson-arm64-build-test:
364 extends:
365 - .meson-arm
366 - .ci-deqp-artifacts
367 variables:
368 VULKAN_DRIVERS: "amd"
369 script:
370 - .gitlab-ci/meson-build.sh
371
Michel Dänzera2cce702019-03-20 15:58:31 +0100372meson-clang:
373 extends: .meson-build
374 variables:
375 UNWIND: "true"
Samuel Pitoiset73621762019-11-19 14:37:32 +0100376 DRI_LOADERS: >
377 -D glvnd=true
Michel Dänzera2cce702019-03-20 15:58:31 +0100378 DRI_DRIVERS: "auto"
379 GALLIUM_DRIVERS: "auto"
Eric Engestrom47f419d2019-05-01 12:09:26 +0100380 VULKAN_DRIVERS: intel,amd,freedreno
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100381 CC: "ccache clang-9"
382 CXX: "ccache clang++-9"
Michel Dänzera2cce702019-03-20 15:58:31 +0100383
Michel Dänzeraaf1b092019-10-30 09:38:20 +0100384.meson-windows:
Dylan Baker19851c92019-10-23 14:36:19 -0700385 extends:
386 - .build-windows
Michel Dänzercc9493f2020-02-27 18:27:56 +0100387 stage: meson-misc
Dylan Baker19851c92019-10-23 14:36:19 -0700388 before_script:
389 - $ENV:ARCH = "x86"
390 - $ENV:VERSION = "2019\Community"
391 script:
392 - cmd /C .gitlab-ci\meson-build.bat
393
Michel Dänzer82b30092019-05-03 18:19:25 +0200394scons-swr:
395 extends: .scons-build
Eric Engestrom46d23c02019-01-20 11:26:53 +0000396 variables:
Michel Dänzer82b30092019-05-03 18:19:25 +0200397 SCONS_TARGET: "swr=1"
398 SCONS_CHECK_COMMAND: "true"
399 LLVM_VERSION: "6.0"
400
401scons-win64:
402 extends: .scons-build
403 variables:
404 SCONS_TARGET: platform=windows machine=x86_64
405 SCONS_CHECK_COMMAND: "true"
Eric Engestrom89a74672019-01-21 09:42:37 +0000406
Michel Dänzer68977152019-05-03 10:58:48 +0200407meson-clover:
Eric Engestromb5a70af2019-01-28 18:05:22 +0000408 extends: .meson-build
409 variables:
410 UNWIND: "true"
411 DRI_LOADERS: >
412 -D glx=disabled
413 -D egl=false
414 -D gbm=false
415 GALLIUM_ST: >
416 -D dri3=false
417 -D gallium-vdpau=false
418 -D gallium-xvmc=false
419 -D gallium-omx=disabled
420 -D gallium-va=false
421 -D gallium-xa=false
422 -D gallium-nine=false
423 -D gallium-opencl=icd
Michel Dänzer68977152019-05-03 10:58:48 +0200424 script:
425 - export GALLIUM_DRIVERS="r600,radeonsi"
426 - .gitlab-ci/meson-build.sh
Samuel Pitoiset7d1c0912019-08-21 11:45:25 +0200427 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
Michel Dänzer68977152019-05-03 10:58:48 +0200428 - export GALLIUM_DRIVERS="i915,r600"
Michel Dänzer8a199922019-09-06 17:04:47 +0200429 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
430 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
431
432meson-clover-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200433 extends:
434 - meson-clover
Michel Dänzer3a48f452019-11-13 17:43:41 +0100435 - .use-x86_build_old
Michel Dänzer8a199922019-09-06 17:04:47 +0200436 variables:
437 UNWIND: "false"
438 DRI_LOADERS: >
439 -D glx=disabled
440 -D egl=false
441 -D gbm=false
442 -D platforms=drm,surfaceless
443 GALLIUM_DRIVERS: "i915,r600"
444 script:
Michel Dänzer68977152019-05-03 10:58:48 +0200445 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
446 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
447 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
Eric Engestrom8dab7072019-01-28 18:09:24 +0000448
Michel Dänzer82b30092019-05-03 18:19:25 +0200449meson-vulkan:
450 extends: .meson-build
451 variables:
452 UNWIND: "false"
453 DRI_LOADERS: >
454 -D glx=disabled
455 -D gbm=false
456 -D egl=false
457 -D platforms=x11,wayland,drm
458 -D osmesa=none
459 GALLIUM_ST: >
460 -D dri3=true
461 -D gallium-vdpau=false
462 -D gallium-xvmc=false
463 -D gallium-omx=disabled
464 -D gallium-va=false
465 -D gallium-xa=false
466 -D gallium-nine=false
467 -D gallium-opencl=disabled
Michel Dänzer75cc8c02019-09-25 12:56:58 +0200468 -D b_sanitize=undefined
469 -D c_args=-fno-sanitize-recover=all
470 -D cpp_args=-fno-sanitize-recover=all
471 UBSAN_OPTIONS: "print_stacktrace=1"
Michel Dänzer82b30092019-05-03 18:19:25 +0200472 VULKAN_DRIVERS: intel,amd,freedreno
Eric Engestrom5f8d29a2019-05-08 18:17:23 +0200473 EXTRA_OPTION: >
474 -D vulkan-overlay-layer=true
Eric Anholt3c7c0212019-12-16 21:23:02 -0800475 -D werror=true
Michel Dänzer82b30092019-05-03 18:19:25 +0200476
Eric Anholt030aa6e2019-08-07 14:05:51 -0700477# While the main point of this build is testing the i386 cross build,
478# we also use this one to test some other options that are exclusive
479# with meson-main's choices (classic swrast and osmesa)
Eric Anholt11aa32a2019-07-11 12:58:28 -0700480meson-i386:
481 extends: .meson-cross
482 variables:
Eric Engestrom1c82fa02019-08-09 23:46:50 +0100483 CROSS: i386
Eric Anholt11aa32a2019-07-11 12:58:28 -0700484 VULKAN_DRIVERS: intel
Eric Anholt030aa6e2019-08-07 14:05:51 -0700485 DRI_DRIVERS: "swrast"
486 GALLIUM_DRIVERS: "iris"
Eric Anholt11aa32a2019-07-11 12:58:28 -0700487 EXTRA_OPTION: >
Eric Anholt11aa32a2019-07-11 12:58:28 -0700488 -D vulkan-overlay-layer=true
Eric Anholt030aa6e2019-08-07 14:05:51 -0700489 -D llvm=false
490 -D osmesa=classic
Eric Anholtf6e59912019-12-16 21:23:02 -0800491 -D werror=true
Eric Anholt11aa32a2019-07-11 12:58:28 -0700492
Michel Dänzer65610ec2020-01-30 18:21:15 +0100493meson-s390x:
494 extends:
495 - .meson-cross
Michel Dänzer23037622020-02-10 12:13:04 +0100496 tags:
497 - gstreamer
Michel Dänzer65610ec2020-01-30 18:21:15 +0100498 variables:
499 CROSS: s390x
500 GALLIUM_DRIVERS: "swrast"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100501 script:
502 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
503 - .gitlab-ci/meson-build.sh
504
505meson-ppc64el:
506 extends:
507 - meson-s390x
508 variables:
509 CROSS: ppc64el
Michel Dänzer8be81f82020-01-31 16:07:10 +0100510 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
Michel Dänzer8be81f82020-01-31 16:07:10 +0100511 VULKAN_DRIVERS: "amd"
Michel Dänzer65610ec2020-01-30 18:21:15 +0100512
Dylan Baker449f8312019-10-11 09:04:14 -0700513meson-mingw32-x86_64:
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700514 extends: .meson-build
Michel Dänzercc9493f2020-02-27 18:27:56 +0100515 stage: meson-misc
Dylan Bakerd905d9b2019-09-19 10:21:51 -0700516 variables:
517 UNWIND: "false"
518 DRI_DRIVERS: ""
519 GALLIUM_DRIVERS: "swrast"
520 EXTRA_OPTION: >
521 -Dllvm=false
522 -Dosmesa=gallium
523 --cross-file=.gitlab-ci/x86_64-w64-mingw32
524
Michel Dänzer88e57962019-09-12 11:45:13 +0200525scons:
Eric Engestromd4c6d4d2019-01-28 16:30:36 +0000526 extends: .scons-build
527 variables:
528 SCONS_TARGET: "llvm=1"
Dylan Baker54053bc2019-10-21 09:29:23 -0700529 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
Michel Dänzerbaa50242019-09-12 11:38:06 +0200530 script:
Dylan Baker54053bc2019-10-21 09:29:23 -0700531 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
Michel Dänzer5f0ff002019-12-13 11:02:16 +0100532 - LLVM_VERSION=9 .gitlab-ci/scons-build.sh
Michel Dänzer8a199922019-09-06 17:04:47 +0200533
534scons-old-llvm:
Michel Dänzer88319f22019-09-18 16:17:01 +0200535 extends:
536 - scons
Michel Dänzer3a48f452019-11-13 17:43:41 +0100537 - .use-x86_build_old
Michel Dänzerbaa50242019-09-12 11:38:06 +0200538 script:
539 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
Eric Anholt46daaca2019-06-28 16:35:32 -0700540
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100541.test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200542 extends:
543 - .ci-run-policy
Eric Anholt46daaca2019-06-28 16:35:32 -0700544 variables:
545 GIT_STRATEGY: none # testing doesn't build anything from source
Michel Dänzer576f7b62019-10-22 17:16:52 +0200546 before_script:
Eric Anholt46daaca2019-06-28 16:35:32 -0700547 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
548 - rm -rf install
549 - tar -xf artifacts/install.tar
Samuel Pitoiseteab328f2019-11-14 14:00:46 +0100550 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
Eric Anholt46daaca2019-06-28 16:35:32 -0700551 artifacts:
Rob Clarkfdaf7772019-11-17 11:33:01 -0800552 when: always
Eric Anholt46daaca2019-06-28 16:35:32 -0700553 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
554 paths:
555 - results/
Michel Dänzercccb68b2019-09-13 11:13:12 +0200556 dependencies:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100557 - meson-testing
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100558
559.test-gl:
560 extends:
561 - .test
562 variables:
563 TAG: *x86_test-gl
564 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
Michel Dänzerc5aa2712019-10-22 11:19:17 +0200565 needs:
Samuel Pitoiset66b56272019-11-19 12:23:41 +0100566 - meson-testing
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100567 - x86_test-gl
Eric Anholt46daaca2019-06-28 16:35:32 -0700568
Samuel Pitoiset0b246d32019-11-18 09:30:27 +0100569.test-vk:
570 extends:
571 - .test
572 variables:
573 TAG: *x86_test-vk
574 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
575 needs:
576 - meson-testing
577 - x86_test-vk
578
Michel Dänzer576f7b62019-10-22 17:16:52 +0200579.piglit-test:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100580 extends: .test-gl
Michel Dänzercc9493f2020-02-27 18:27:56 +0100581 stage: llvmpipe
Michel Dänzera3b3d3b2019-11-25 18:42:10 +0100582 artifacts:
583 when: on_failure
584 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
585 paths:
586 - summary/
Michel Dänzer576f7b62019-10-22 17:16:52 +0200587 variables:
588 LIBGL_ALWAYS_SOFTWARE: 1
589 PIGLIT_NO_WINDOW: 1
590 script:
591 - artifacts/piglit/run.sh
592
593piglit-quick_gl:
594 extends: .piglit-test
595 variables:
596 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000597 NIR_VALIDATE: 0
Michel Dänzer576f7b62019-10-22 17:16:52 +0200598 PIGLIT_OPTIONS: >
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100599 --process-isolation false
Michel Dänzer576f7b62019-10-22 17:16:52 +0200600 -x arb_gpu_shader5
Eric Anholt3097efe2019-12-04 16:13:38 -0800601 -x egl_ext_device_
602 -x egl_ext_platform_device
Matt Turner17c9ec92020-01-21 15:23:39 -0800603 -x ext_timer_query@time-elapsed
Michel Dänzer576f7b62019-10-22 17:16:52 +0200604 -x glx-multithread-clearbuffer
605 -x glx-multithread-shader-compile
606 -x max-texture-size
607 -x maxsize
608 PIGLIT_PROFILES: quick_gl
609
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100610piglit-glslparser:
611 extends: .piglit-test
612 variables:
613 LP_NUM_THREADS: 0
Dave Airliee6b2af52019-12-03 15:23:45 +1000614 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100615 PIGLIT_PROFILES: glslparser
616
617piglit-quick_shader:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200618 extends: .piglit-test
619 variables:
620 LP_NUM_THREADS: 1
Dave Airliee6b2af52019-12-03 15:23:45 +1000621 NIR_VALIDATE: 0
Michel Dänzer5585b8e2019-12-03 10:45:28 +0100622 PIGLIT_PROFILES: quick_shader
Michel Dänzer576f7b62019-10-22 17:16:52 +0200623
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100624.deqp-test:
Michel Dänzer576f7b62019-10-22 17:16:52 +0200625 variables:
626 DEQP_SKIPS: deqp-default-skips.txt
627 script:
628 - ./artifacts/deqp-runner.sh
629
Samuel Pitoiset16b999b2019-11-19 08:39:00 +0100630.deqp-test-gl:
631 extends:
632 - .test-gl
633 - .deqp-test
634
635.deqp-test-vk:
636 extends:
637 - .test-vk
638 - .deqp-test
639 variables:
640 DEQP_VER: vk
641
Samuel Pitoiset1cdb6ed2020-02-26 09:33:14 +0100642.fossilize-test:
643 extends: .test-vk
644 script:
645 - ./artifacts/fossilize-runner.sh
646
Michel Dänzer71436f92020-03-03 18:17:12 +0100647llvmpipe-gles2:
Eric Anholt46daaca2019-06-28 16:35:32 -0700648 variables:
649 DEQP_VER: gles2
Eric Anholtf08c8102019-11-04 10:54:41 -0800650 DEQP_PARALLEL: 4
Dave Airliee6b2af52019-12-03 15:23:45 +1000651 NIR_VALIDATE: 0
Eric Anholtf08c8102019-11-04 10:54:41 -0800652 # Don't use threads inside llvmpipe, we've already got all 4 cores
653 # busy with DEQP_PARALLEL.
654 LP_NUM_THREADS: 0
Eric Anholt46daaca2019-06-28 16:35:32 -0700655 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
656 LIBGL_ALWAYS_SOFTWARE: "true"
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100657 extends: .deqp-test-gl
Michel Dänzercc9493f2020-02-27 18:27:56 +0100658 stage: llvmpipe
Eric Anholt553cd822019-08-09 10:32:40 -0700659
Michel Dänzer71436f92020-03-03 18:17:12 +0100660softpipe-gles2:
661 extends: llvmpipe-gles2
Michel Dänzercc9493f2020-02-27 18:27:56 +0100662 stage: softpipe
Eric Anholt553cd822019-08-09 10:32:40 -0700663 variables:
Eric Anholt553cd822019-08-09 10:32:40 -0700664 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
Eric Anholtf08c8102019-11-04 10:54:41 -0800665 DEQP_SKIPS: deqp-softpipe-skips.txt
Eric Anholt553cd822019-08-09 10:32:40 -0700666 GALLIUM_DRIVER: "softpipe"
Eric Anholt553cd822019-08-09 10:32:40 -0700667
Michel Dänzer71436f92020-03-03 18:17:12 +0100668softpipe-gles3:
Eric Anholt52843ec2019-11-05 10:31:29 -0800669 parallel: 2
Eric Anholt553cd822019-08-09 10:32:40 -0700670 variables:
671 DEQP_VER: gles3
Michel Dänzer71436f92020-03-03 18:17:12 +0100672 extends: softpipe-gles2
Eric Anholt52843ec2019-11-05 10:31:29 -0800673
Michel Dänzer71436f92020-03-03 18:17:12 +0100674softpipe-gles31:
Eric Anholt52843ec2019-11-05 10:31:29 -0800675 parallel: 4
676 variables:
677 DEQP_VER: gles31
Michel Dänzer71436f92020-03-03 18:17:12 +0100678 extends: softpipe-gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700679
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000680arm64_a630_gles2:
Michel Dänzerc6c76522019-11-11 18:13:28 +0100681 extends:
Samuel Pitoiset520a77d2019-11-18 09:15:12 +0100682 - .deqp-test-gl
Michel Dänzerc6c76522019-11-11 18:13:28 +0100683 - .use-arm_test
Michel Dänzercc9493f2020-02-27 18:27:56 +0100684 stage: freedreno
Eric Anholt6f0dc082019-06-28 16:35:32 -0700685 variables:
686 DEQP_VER: gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700687 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
688 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
689 NIR_VALIDATE: 0
Eric Anholtdd76a6f2019-11-21 05:12:58 -0800690 DEQP_PARALLEL: 4
Rob Clarkfdaf7772019-11-17 11:33:01 -0800691 FLAKES_CHANNEL: "#freedreno-ci"
Eric Anholt6f0dc082019-06-28 16:35:32 -0700692 tags:
693 - mesa-cheza
694 dependencies:
695 - meson-arm64
Eric Anholt6f0dc082019-06-28 16:35:32 -0700696
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000697arm64_a630_gles31:
698 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700699 variables:
Michel Dänzer128581d2019-09-11 18:55:43 +0200700 DEQP_VER: gles31
Eric Anholt6f0dc082019-06-28 16:35:32 -0700701
Fritz Koenig2a98cf32020-02-12 19:31:24 +0000702arm64_a630_gles3:
703 extends: arm64_a630_gles2
Eric Anholt6f0dc082019-06-28 16:35:32 -0700704 variables:
705 DEQP_VER: gles3
706
Eric Anholtaea8c9c2020-03-03 11:44:45 -0800707arm64_a306_gles2:
708 extends: arm64_a630_gles2
709 variables:
710 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
711 DEQP_SKIPS: deqp-default-skips.txt
712 tags:
713 - db410c
714
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100715# RADV CI
716.test-radv:
Michel Dänzercc9493f2020-02-27 18:27:56 +0100717 stage: misc-tests
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100718 variables:
719 VK_DRIVER: radeon
Samuel Pitoisetff2e11b2019-12-06 17:07:35 +0100720 RADV_DEBUG: checkir
Samuel Pitoisetc1a36272019-11-13 11:03:52 +0100721 # Can only be triggered manually on personal branches because RADV is the only
722 # driver that does Vulkan testing at the moment.
723 rules:
724 # Never test RADV by default in the main project.
725 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
726 when: never
727 # Never test RADV by default for merge requests.
728 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
729 when: never
730 # Otherwise, allow testing RADV if the test image for VK has been manually
731 # started.
732 - when: on_success
733
734radv_polaris10_vkcts:
735 extends:
736 - .deqp-test-vk
737 - .test-radv
738 variables:
739 DEQP_PARALLEL: 4
740 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
741 tags:
742 - polaris10
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200743
Andres Gomez0ac731b12020-02-20 18:26:30 +0200744# Traces CI
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200745.traces-test:
Michel Dänzercc9493f2020-02-27 18:27:56 +0100746 stage: misc-tests
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200747 cache:
748 key: ${CI_JOB_NAME}
749 paths:
750 - .git-lfs-storage/
Andres Gomez0ac731b12020-02-20 18:26:30 +0200751
752.traces-test-gl:
753 extends:
754 - .test-gl
755 - .traces-test
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200756 script:
Andres Gomez0ac731b12020-02-20 18:26:30 +0200757 - ./artifacts/tracie-runner-gl.sh
758
759.traces-test-vk:
760 extends:
761 - .test-vk
762 - .traces-test
763 script:
764 - ./artifacts/tracie-runner-vk.sh
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200765
766llvmpipe-traces:
Andres Gomez0ac731b12020-02-20 18:26:30 +0200767 extends: .traces-test-gl
Alexandros Frantzis803ab5d2020-01-08 17:46:46 +0200768 variables:
769 LIBGL_ALWAYS_SOFTWARE: "true"
770 GALLIUM_DRIVER: "llvmpipe"
Andres Gomez1d755952020-02-20 17:32:08 +0200771 DEVICE_NAME: "gl-vmware-llvmpipe"
Andres Gomez0ac731b12020-02-20 18:26:30 +0200772
773radv-polaris10-traces:
774 extends:
775 - .traces-test-vk
776 - .test-radv
777 variables:
778 DEVICE_NAME: "vk-amd-polaris10"
779 tags:
780 - polaris10