1 # This is the tag of the docker image used for the build jobs. If the
2 # image doesn't exist yet, the containers stage generates it.
4 # In order to generate a new image, one should generally change the tag.
5 # While removing the image from the registry would also work, that's not
6 # recommended except for ephemeral images during development: Replacing
7 # an image after a significant amount of time might pull in newer
8 # versions of gcc/clang or other packages, which might break the build
9 # with older commits using the same tag.
11 # After merging a change resulting in generating a new image to the
12 # main repository, it's recommended to remove the image from the source
13 # repository's container registry, so that the image from the main
14 # repository's registry will be used there as well.
16 UPSTREAM_REPO: mesa/mesa
17 DEBIAN_TAG: "amd64-2019-11-13-2"
18 DEBIAN_TEST_TAG: "amd64-test-2019-11-12-2"
19 DEBIAN_ARM64_TAG: "arm64v8-2019-11-13"
20 DEBIAN_ARM64_TEST_TAG: "arm64v8-test-2019-11-12-2"
21 STRETCH_TAG: "2019-09-18"
22 DEBIAN_VERSION: buster-slim
23 STRETCH_VERSION: stretch-slim
24 DEBIAN_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG"
25 DEBIAN_TEST_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TEST_TAG"
26 DEBIAN_ARM64_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_ARM64_TAG"
27 DEBIAN_ARM64_TEST_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_ARM64_TEST_TAG"
28 STRETCH_IMAGE: "$CI_REGISTRY_IMAGE/debian/$STRETCH_VERSION:$STRETCH_TAG"
31 - project: 'wayland/ci-templates'
32 ref: 1f7f57c64ff4ebbf7292e3b7a13600518b8cb24c
33 file: '/templates/debian.yml'
36 - local: '.gitlab-ci/lava-gitlab-ci.yml'
44 # When to automatically run the CI
71 - runner_system_failure
78 # Watch out! Artifacts are relative to the build dir.
79 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
82 # Build the normal CI native and cross-build docker images.
89 # no need to pull the whole repo to build the container image
94 - .debian@container-ifnot-exists
97 DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
104 debian-10-test:amd64:
105 extends: debian-10:amd64
107 DEBIAN_TAG: "$DEBIAN_TEST_TAG"
108 DEBIAN_EXEC: 'bash .gitlab-ci/debian-test-install.sh'
111 extends: debian-10:amd64
113 DEBIAN_TAG: $STRETCH_TAG
114 DEBIAN_VERSION: $STRETCH_VERSION
115 DEBIAN_IMAGE: $STRETCH_IMAGE
116 DEBIAN_EXEC: 'bash .gitlab-ci/debian-stretch-install.sh'
119 image: $STRETCH_IMAGE
125 - .debian@container-ifnot-exists@arm64v8
128 DEBIAN_TAG: "$DEBIAN_ARM64_TAG"
129 DEBIAN_EXEC: 'bash .gitlab-ci/debian-arm64-install.sh'
131 debian-10-test:arm64:
133 - .debian@container-ifnot-exists@arm64v8
136 DEBIAN_TAG: "$DEBIAN_ARM64_TEST_TAG"
137 DEBIAN_EXEC: 'bash .gitlab-ci/debian-arm64-test-install.sh'
142 # Shared between windows and Linux
144 extends: .ci-run-policy
149 - _build/meson-logs/*.txt
156 extends: .build-common
162 CCACHE_COMPILERCHECK: "content"
163 # Use ccache transparently, and print stats before/after
165 - export PATH="/usr/lib/ccache:$PATH"
166 - export CCACHE_BASEDIR="$PWD"
167 - export CCACHE_DIR="$PWD/ccache"
168 - ccache --max-size=1500M
169 - ccache --zero-stats || true
170 - ccache --show-stats || true
172 - export CCACHE_DIR="$PWD/ccache"
173 - ccache --show-stats
176 extends: .build-common
182 - subprojects/packagecache
187 - .use-debian-10:amd64
189 - .gitlab-ci/meson-build.sh
194 - .use-debian-10:amd64
198 - .gitlab-ci/scons-build.sh
210 -D platforms=x11,wayland,drm,surfaceless
211 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
214 -D gallium-extra-hud=true
215 -D gallium-vdpau=true
217 -D gallium-omx=bellagio
221 -D gallium-opencl=disabled
222 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
227 BUILDTYPE: "debugoptimized"
229 - .gitlab-ci/meson-build.sh
230 - .gitlab-ci/run-shader-db.sh
231 - .gitlab-ci/prepare-artifacts.sh
242 -D platforms=surfaceless
246 -D gallium-vdpau=false
247 -D gallium-xvmc=false
248 -D gallium-omx=disabled
251 -D gallium-nine=false
254 extends: .meson-cross
255 image: $DEBIAN_ARM64_IMAGE
257 VULKAN_DRIVERS: freedreno
258 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
260 -D I-love-half-baked-turnips=true
277 BUILDTYPE: "debugoptimized"
278 VULKAN_DRIVERS: "freedreno,amd"
280 - .gitlab-ci/meson-build.sh
281 - .gitlab-ci/prepare-artifacts.sh
283 # NOTE: Building SWR is 2x (yes two) times slower than all the other
284 # gallium drivers combined.
285 # Start this early so that it doesn't limit the total run time.
287 # We also stick the glvnd build here, since we want non-glvnd in
288 # meson-main for actual driver CI.
290 extends: .meson-build
298 -D gallium-vdpau=false
299 -D gallium-xvmc=false
300 -D gallium-omx=disabled
303 -D gallium-nine=false
304 -D gallium-opencl=disabled
305 GALLIUM_DRIVERS: "swr,iris"
309 extends: .meson-build
313 GALLIUM_DRIVERS: "auto"
314 VULKAN_DRIVERS: intel,amd,freedreno
316 CXX: "ccache clang++-8"
323 - $ENV:VERSION = "2019\Community"
325 - cmd /C .gitlab-ci\meson-build.bat
328 extends: .scons-build
330 SCONS_TARGET: "swr=1"
331 SCONS_CHECK_COMMAND: "true"
335 extends: .scons-build
337 SCONS_TARGET: platform=windows machine=x86_64
338 SCONS_CHECK_COMMAND: "true"
341 extends: .meson-build
350 -D gallium-vdpau=false
351 -D gallium-xvmc=false
352 -D gallium-omx=disabled
355 -D gallium-nine=false
356 -D gallium-opencl=icd
358 - export GALLIUM_DRIVERS="r600,radeonsi"
359 - .gitlab-ci/meson-build.sh
360 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
361 - export GALLIUM_DRIVERS="i915,r600"
362 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
363 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
365 meson-clover-old-llvm:
368 - .use-debian-9:amd64
375 -D platforms=drm,surfaceless
376 GALLIUM_DRIVERS: "i915,r600"
378 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
379 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
380 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
383 extends: .meson-build
390 -D platforms=x11,wayland,drm
394 -D gallium-vdpau=false
395 -D gallium-xvmc=false
396 -D gallium-omx=disabled
399 -D gallium-nine=false
400 -D gallium-opencl=disabled
401 -D b_sanitize=undefined
402 -D c_args=-fno-sanitize-recover=all
403 -D cpp_args=-fno-sanitize-recover=all
404 UBSAN_OPTIONS: "print_stacktrace=1"
405 VULKAN_DRIVERS: intel,amd,freedreno
408 -D vulkan-overlay-layer=true
410 # While the main point of this build is testing the i386 cross build,
411 # we also use this one to test some other options that are exclusive
412 # with meson-main's choices (classic swrast and osmesa)
414 extends: .meson-cross
417 VULKAN_DRIVERS: intel
418 DRI_DRIVERS: "swrast"
419 GALLIUM_DRIVERS: "iris"
421 -D vulkan-overlay-layer=true
425 meson-mingw32-x86_64:
426 extends: .meson-build
430 GALLIUM_DRIVERS: "swrast"
434 --cross-file=.gitlab-ci/x86_64-w64-mingw32
437 extends: .scons-build
439 SCONS_TARGET: "llvm=1"
440 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
442 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
443 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
444 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
445 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
450 - .use-debian-9:amd64
452 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
453 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
454 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
459 image: $DEBIAN_TEST_IMAGE
462 GIT_STRATEGY: none # testing doesn't build anything from source
464 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
466 - tar -xf artifacts/install.tar
467 - LD_LIBRARY_PATH=install/lib ldd install/lib/{*,dri/swrast_dri}.so
470 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
477 - debian-10-test:amd64
483 junit: results/results.xml
485 LIBGL_ALWAYS_SOFTWARE: 1
488 - artifacts/piglit/run.sh
491 extends: .piglit-test
496 -x glx-multithread-clearbuffer
497 -x glx-multithread-shader-compile
500 PIGLIT_PROFILES: quick_gl
502 piglit-glslparser+quick_shader:
503 extends: .piglit-test
507 -x spec@arb_arrays_of_arrays@execution@ubo
508 -x spec@arb_gpu_shader_int64@execution$$
509 -x spec@arb_separate_shader_objects@execution
510 -x spec@arb_separate_shader_objects@linker
511 -x spec@arb_shader_storage_buffer_object@execution
512 -x spec@glsl-1.50@execution@built-in-functions
513 PIGLIT_PROFILES: "glslparser quick_shader"
514 PIGLIT_RESULTS: "glslparser+quick_shader"
519 DEQP_SKIPS: deqp-default-skips.txt
521 - ./artifacts/deqp-runner.sh
527 # Don't use threads inside llvmpipe, we've already got all 4 cores
528 # busy with DEQP_PARALLEL.
530 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
531 LIBGL_ALWAYS_SOFTWARE: "true"
535 extends: test-llvmpipe-gles2
537 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
538 DEQP_SKIPS: deqp-softpipe-skips.txt
539 GALLIUM_DRIVER: "softpipe"
545 extends: test-softpipe-gles2
547 test-softpipe-gles31:
551 extends: test-softpipe-gles2
555 image: $DEBIAN_ARM64_TEST_IMAGE
558 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
559 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
567 - debian-10-test:arm64
570 extends: arm64_a630_gles2
577 extends: arm64_a630_gles2
583 extends: arm64_a630_gles2
585 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
586 DEQP_SKIPS: deqp-default-skips.txt