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-30"
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
146 CCACHE_COMPILERCHECK: "content"
147 NINJA_FLAGS: "-j8" # autoscale is provisioned at 4 CPUs/job.
148 # kubernetes (the mesa-autoscale runner) always has a clean working
149 # dir, so we can't reuse the git clone, but that also means we don't
150 # need to download any extra history (normally extra history is
151 # needed so that a future fetch can find a shared parent).
153 # Autoscale runners have 300GB of disk (since iops/throughput
154 # scales with disk size!), but we want to leave lots of space for
157 # Use ccache transparently, and print stats before/after
159 - export PATH="/usr/lib/ccache:$PATH"
160 - export CCACHE_BASEDIR="$PWD"
161 - ccache --max-size="$CCACHE_SIZE" || true
162 - ccache --show-stats || true
164 # In case the install dir is being saved as artifacts, tar it up
165 # so that symlinks and hardlinks aren't each packed separately in
167 - if [ -d install ]; then
168 tar -cf artifacts/install.tar install;
170 - ccache --show-stats
173 extends: .build-common
179 - subprojects/packagecache
184 - .use-debian-10:amd64
186 - .gitlab-ci/meson-build.sh
191 - .use-debian-10:amd64
195 - .gitlab-ci/scons-build.sh
207 -D platforms=x11,wayland,drm,surfaceless
208 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
211 -D gallium-extra-hud=true
212 -D gallium-vdpau=true
214 -D gallium-omx=bellagio
218 -D gallium-opencl=disabled
219 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
224 MESON_SHADERDB: "true"
225 BUILDTYPE: "debugoptimized"
236 -D platforms=surfaceless
240 -D gallium-vdpau=false
241 -D gallium-xvmc=false
242 -D gallium-omx=disabled
245 -D gallium-nine=false
248 extends: .meson-cross
249 image: $DEBIAN_ARM64_IMAGE
251 VULKAN_DRIVERS: freedreno
252 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
254 -D I-love-half-baked-turnips=true
256 CCACHE_DIR: "$PWD/ccache"
274 BUILDTYPE: "debugoptimized"
276 # NOTE: Building SWR is 2x (yes two) times slower than all the other
277 # gallium drivers combined.
278 # Start this early so that it doesn't limit the total run time.
280 # We also stick the glvnd build here, since we want non-glvnd in
281 # meson-main for actual driver CI.
283 extends: .meson-build
291 -D gallium-vdpau=false
292 -D gallium-xvmc=false
293 -D gallium-omx=disabled
296 -D gallium-nine=false
297 -D gallium-opencl=disabled
298 GALLIUM_DRIVERS: "swr,iris"
302 extends: .meson-build
306 GALLIUM_DRIVERS: "auto"
307 VULKAN_DRIVERS: intel,amd,freedreno
309 CXX: "ccache clang++-8"
316 - $ENV:VERSION = "2019\Community"
318 - cmd /C .gitlab-ci\meson-build.bat
321 extends: .scons-build
323 SCONS_TARGET: "swr=1"
324 SCONS_CHECK_COMMAND: "true"
328 extends: .scons-build
330 SCONS_TARGET: platform=windows machine=x86_64
331 SCONS_CHECK_COMMAND: "true"
334 extends: .meson-build
343 -D gallium-vdpau=false
344 -D gallium-xvmc=false
345 -D gallium-omx=disabled
348 -D gallium-nine=false
349 -D gallium-opencl=icd
351 - export GALLIUM_DRIVERS="r600,radeonsi"
352 - .gitlab-ci/meson-build.sh
353 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
354 - export GALLIUM_DRIVERS="i915,r600"
355 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
356 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
358 meson-clover-old-llvm:
361 - .use-debian-9:amd64
368 -D platforms=drm,surfaceless
369 GALLIUM_DRIVERS: "i915,r600"
371 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
372 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
373 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
376 extends: .meson-build
383 -D platforms=x11,wayland,drm
387 -D gallium-vdpau=false
388 -D gallium-xvmc=false
389 -D gallium-omx=disabled
392 -D gallium-nine=false
393 -D gallium-opencl=disabled
394 -D b_sanitize=undefined
395 -D c_args=-fno-sanitize-recover=all
396 -D cpp_args=-fno-sanitize-recover=all
397 UBSAN_OPTIONS: "print_stacktrace=1"
398 VULKAN_DRIVERS: intel,amd,freedreno
401 -D vulkan-overlay-layer=true
403 # While the main point of this build is testing the i386 cross build,
404 # we also use this one to test some other options that are exclusive
405 # with meson-main's choices (classic swrast and osmesa)
407 extends: .meson-cross
410 VULKAN_DRIVERS: intel
411 DRI_DRIVERS: "swrast"
412 GALLIUM_DRIVERS: "iris"
414 -D vulkan-overlay-layer=true
418 meson-mingw32-x86_64:
419 extends: .meson-build
423 GALLIUM_DRIVERS: "swrast"
427 --cross-file=.gitlab-ci/x86_64-w64-mingw32
430 extends: .scons-build
432 SCONS_TARGET: "llvm=1"
433 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
435 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
436 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
437 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
438 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
443 - .use-debian-9:amd64
445 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
446 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
447 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
450 extends: .ci-run-policy
453 GIT_STRATEGY: none # testing doesn't build anything from source
458 - .use-debian-10:amd64
460 DEQP_SKIPS: deqp-default-skips.txt
462 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
464 - tar -xf artifacts/install.tar
465 - ./artifacts/deqp-runner.sh
468 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
481 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
482 LIBGL_ALWAYS_SOFTWARE: "true"
483 DEQP_RENDERER_MATCH: "llvmpipe"
487 extends: test-llvmpipe-gles2
489 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
490 DEQP_RENDERER_MATCH: "softpipe"
491 GALLIUM_DRIVER: "softpipe"
493 # The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is
494 # 25 minutes. Until we can get its runtime down, just do a partial
495 # (every 10 tests) run.
496 test-softpipe-gles3-limited:
499 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
500 LIBGL_ALWAYS_SOFTWARE: "true"
501 DEQP_RENDERER_MATCH: "softpipe"
502 GALLIUM_DRIVER: "softpipe"
509 image: $DEBIAN_ARM64_IMAGE
512 DEQP_RENDERER_MATCH: "FD630"
513 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
514 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
525 extends: arm64_a630_gles2
532 extends: arm64_a630_gles2
538 extends: arm64_a630_gles2
540 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
541 DEQP_SKIPS: deqp-default-skips.txt
542 DEQP_RENDERER_MATCH: "FD307"