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: "2019-10-29"
18 DEBIAN_ARM64_TAG: "arm64v8-2019-10-23"
19 STRETCH_TAG: "2019-09-18"
20 DEBIAN_VERSION: buster-slim
21 STRETCH_VERSION: stretch-slim
22 DEBIAN_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG"
23 DEBIAN_ARM64_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_ARM64_TAG"
24 STRETCH_IMAGE: "$CI_REGISTRY_IMAGE/debian/$STRETCH_VERSION:$STRETCH_TAG"
27 - project: 'wayland/ci-templates'
28 ref: 1f7f57c64ff4ebbf7292e3b7a13600518b8cb24c
29 file: '/templates/debian.yml'
32 - local: '.gitlab-ci/lava-gitlab-ci.yml'
40 # When to automatically run the CI
67 - runner_system_failure
74 # Watch out! Artifacts are relative to the build dir.
75 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
78 # Build the normal CI native and cross-build docker images.
85 # no need to pull the whole repo to build the container image
90 - .debian@container-ifnot-exists
93 DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
101 extends: debian-10:amd64
103 DEBIAN_TAG: $STRETCH_TAG
104 DEBIAN_VERSION: $STRETCH_VERSION
105 DEBIAN_IMAGE: $STRETCH_IMAGE
106 DEBIAN_EXEC: 'bash .gitlab-ci/debian-stretch-install.sh'
109 image: $STRETCH_IMAGE
115 - .debian@container-ifnot-exists@arm64v8
118 DEBIAN_TAG: "$DEBIAN_ARM64_TAG"
119 DEBIAN_EXEC: 'bash .gitlab-ci/debian-arm64-install.sh'
124 # Shared between windows and Linux
126 extends: .ci-run-policy
131 - _build/meson-logs/*.txt
138 extends: .build-common
144 CCACHE_COMPILERCHECK: "content"
145 # Use ccache transparently, and print stats before/after
147 - export PATH="/usr/lib/ccache:$PATH"
148 - export CCACHE_BASEDIR="$PWD"
149 - export CCACHE_DIR="$PWD/ccache"
150 - ccache --max-size=1500M
151 - ccache --zero-stats || true
152 - ccache --show-stats || true
154 # In case the install dir is being saved as artifacts, tar it up
155 # so that symlinks and hardlinks aren't each packed separately in
157 - if [ -d install ]; then
158 tar -cf artifacts/install.tar install;
160 - export CCACHE_DIR="$PWD/ccache"
161 - ccache --show-stats
164 extends: .build-common
170 - subprojects/packagecache
175 - .use-debian-10:amd64
177 - .gitlab-ci/meson-build.sh
182 - .use-debian-10:amd64
186 - .gitlab-ci/scons-build.sh
198 -D platforms=x11,wayland,drm,surfaceless
199 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
202 -D gallium-extra-hud=true
203 -D gallium-vdpau=true
205 -D gallium-omx=bellagio
209 -D gallium-opencl=disabled
210 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
215 MESON_SHADERDB: "true"
216 BUILDTYPE: "debugoptimized"
227 -D platforms=surfaceless
231 -D gallium-vdpau=false
232 -D gallium-xvmc=false
233 -D gallium-omx=disabled
236 -D gallium-nine=false
239 extends: .meson-cross
240 image: $DEBIAN_ARM64_IMAGE
242 VULKAN_DRIVERS: freedreno
243 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
245 -D I-love-half-baked-turnips=true
262 BUILDTYPE: "debugoptimized"
264 # NOTE: Building SWR is 2x (yes two) times slower than all the other
265 # gallium drivers combined.
266 # Start this early so that it doesn't limit the total run time.
268 # We also stick the glvnd build here, since we want non-glvnd in
269 # meson-main for actual driver CI.
271 extends: .meson-build
279 -D gallium-vdpau=false
280 -D gallium-xvmc=false
281 -D gallium-omx=disabled
284 -D gallium-nine=false
285 -D gallium-opencl=disabled
286 GALLIUM_DRIVERS: "swr,iris"
290 extends: .meson-build
294 GALLIUM_DRIVERS: "auto"
295 VULKAN_DRIVERS: intel,amd,freedreno
297 CXX: "ccache clang++-8"
304 - $ENV:VERSION = "2019\Community"
306 - cmd /C .gitlab-ci\meson-build.bat
309 extends: .scons-build
311 SCONS_TARGET: "swr=1"
312 SCONS_CHECK_COMMAND: "true"
316 extends: .scons-build
318 SCONS_TARGET: platform=windows machine=x86_64
319 SCONS_CHECK_COMMAND: "true"
322 extends: .meson-build
331 -D gallium-vdpau=false
332 -D gallium-xvmc=false
333 -D gallium-omx=disabled
336 -D gallium-nine=false
337 -D gallium-opencl=icd
339 - export GALLIUM_DRIVERS="r600,radeonsi"
340 - .gitlab-ci/meson-build.sh
341 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
342 - export GALLIUM_DRIVERS="i915,r600"
343 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
344 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
346 meson-clover-old-llvm:
349 - .use-debian-9:amd64
356 -D platforms=drm,surfaceless
357 GALLIUM_DRIVERS: "i915,r600"
359 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
360 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
361 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
364 extends: .meson-build
371 -D platforms=x11,wayland,drm
375 -D gallium-vdpau=false
376 -D gallium-xvmc=false
377 -D gallium-omx=disabled
380 -D gallium-nine=false
381 -D gallium-opencl=disabled
382 -D b_sanitize=undefined
383 -D c_args=-fno-sanitize-recover=all
384 -D cpp_args=-fno-sanitize-recover=all
385 UBSAN_OPTIONS: "print_stacktrace=1"
386 VULKAN_DRIVERS: intel,amd,freedreno
389 -D vulkan-overlay-layer=true
391 # While the main point of this build is testing the i386 cross build,
392 # we also use this one to test some other options that are exclusive
393 # with meson-main's choices (classic swrast and osmesa)
395 extends: .meson-cross
398 VULKAN_DRIVERS: intel
399 DRI_DRIVERS: "swrast"
400 GALLIUM_DRIVERS: "iris"
402 -D vulkan-overlay-layer=true
406 meson-mingw32-x86_64:
407 extends: .meson-build
411 GALLIUM_DRIVERS: "swrast"
415 --cross-file=.gitlab-ci/x86_64-w64-mingw32
418 extends: .scons-build
420 SCONS_TARGET: "llvm=1"
421 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
423 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
424 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
425 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
426 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
431 - .use-debian-9:amd64
433 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
434 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
435 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
438 extends: .ci-run-policy
441 GIT_STRATEGY: none # testing doesn't build anything from source
446 - .use-debian-10:amd64
448 DEQP_SKIPS: deqp-default-skips.txt
450 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
452 - tar -xf artifacts/install.tar
453 - ./artifacts/deqp-runner.sh
456 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
469 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
470 LIBGL_ALWAYS_SOFTWARE: "true"
471 DEQP_RENDERER_MATCH: "llvmpipe"
475 extends: test-llvmpipe-gles2
477 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
478 DEQP_RENDERER_MATCH: "softpipe"
479 GALLIUM_DRIVER: "softpipe"
481 # The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is
482 # 25 minutes. Until we can get its runtime down, just do a partial
483 # (every 10 tests) run.
484 test-softpipe-gles3-limited:
487 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
488 LIBGL_ALWAYS_SOFTWARE: "true"
489 DEQP_RENDERER_MATCH: "softpipe"
490 GALLIUM_DRIVER: "softpipe"
497 image: $DEBIAN_ARM64_IMAGE
500 DEQP_RENDERER_MATCH: "FD630"
501 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
502 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
513 extends: arm64_a630_gles2
520 extends: arm64_a630_gles2
526 extends: arm64_a630_gles2
528 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
529 DEQP_SKIPS: deqp-default-skips.txt
530 DEQP_RENDERER_MATCH: "FD307"