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-11-06"
19 DEBIAN_ARM64_TEST_TAG: "arm64v8-test-2019-11-06"
20 STRETCH_TAG: "2019-09-18"
21 DEBIAN_VERSION: buster-slim
22 STRETCH_VERSION: stretch-slim
23 DEBIAN_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG"
24 DEBIAN_ARM64_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_ARM64_TAG"
25 DEBIAN_ARM64_TEST_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_ARM64_TEST_TAG"
26 STRETCH_IMAGE: "$CI_REGISTRY_IMAGE/debian/$STRETCH_VERSION:$STRETCH_TAG"
29 - project: 'wayland/ci-templates'
30 ref: 1f7f57c64ff4ebbf7292e3b7a13600518b8cb24c
31 file: '/templates/debian.yml'
34 - local: '.gitlab-ci/lava-gitlab-ci.yml'
42 # When to automatically run the CI
69 - runner_system_failure
76 # Watch out! Artifacts are relative to the build dir.
77 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
80 # Build the normal CI native and cross-build docker images.
87 # no need to pull the whole repo to build the container image
92 - .debian@container-ifnot-exists
95 DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
103 extends: debian-10:amd64
105 DEBIAN_TAG: $STRETCH_TAG
106 DEBIAN_VERSION: $STRETCH_VERSION
107 DEBIAN_IMAGE: $STRETCH_IMAGE
108 DEBIAN_EXEC: 'bash .gitlab-ci/debian-stretch-install.sh'
111 image: $STRETCH_IMAGE
117 - .debian@container-ifnot-exists@arm64v8
120 DEBIAN_TAG: "$DEBIAN_ARM64_TAG"
121 DEBIAN_EXEC: 'bash .gitlab-ci/debian-arm64-install.sh'
123 debian-10-test:arm64:
125 - .debian@container-ifnot-exists@arm64v8
128 DEBIAN_TAG: "$DEBIAN_ARM64_TEST_TAG"
129 DEBIAN_EXEC: 'bash .gitlab-ci/debian-arm64-test-install.sh'
134 # Shared between windows and Linux
136 extends: .ci-run-policy
141 - _build/meson-logs/*.txt
148 extends: .build-common
156 CCACHE_COMPILERCHECK: "content"
157 NINJA_FLAGS: "-j8" # autoscale is provisioned at 4 CPUs/job.
158 # kubernetes (the mesa-autoscale runner) always has a clean working
159 # dir, so we can't reuse the git clone, but that also means we don't
160 # need to download any extra history (normally extra history is
161 # needed so that a future fetch can find a shared parent).
163 # Autoscale runners have 300GB of disk (since iops/throughput
164 # scales with disk size!), but we want to leave lots of space for
167 # Use ccache transparently, and print stats before/after
169 - export PATH="/usr/lib/ccache:$PATH"
170 - export CCACHE_BASEDIR="$PWD"
171 - ccache --max-size="$CCACHE_SIZE" || true
172 - if [ "$CCACHE_DIR" = "$CI_PROJECT_DIR/ccache" ]; then ccache --zero-stats; fi
173 - ccache --show-stats || true
175 # In case the install dir is being saved as artifacts, tar it up
176 # so that symlinks and hardlinks aren't each packed separately in
178 - if [ -d install ]; then
179 tar -cf artifacts/install.tar install;
181 - ccache --show-stats
184 extends: .build-common
190 - subprojects/packagecache
195 - .use-debian-10:amd64
197 - .gitlab-ci/meson-build.sh
202 - .use-debian-10:amd64
206 - .gitlab-ci/scons-build.sh
218 -D platforms=x11,wayland,drm,surfaceless
219 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
222 -D gallium-extra-hud=true
223 -D gallium-vdpau=true
225 -D gallium-omx=bellagio
229 -D gallium-opencl=disabled
230 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
235 MESON_SHADERDB: "true"
236 BUILDTYPE: "debugoptimized"
247 -D platforms=surfaceless
251 -D gallium-vdpau=false
252 -D gallium-xvmc=false
253 -D gallium-omx=disabled
256 -D gallium-nine=false
259 extends: .meson-cross
260 image: $DEBIAN_ARM64_IMAGE
262 VULKAN_DRIVERS: freedreno
263 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
265 -D I-love-half-baked-turnips=true
267 CCACHE_DIR: "$CI_PROJECT_DIR/ccache"
285 BUILDTYPE: "debugoptimized"
287 # NOTE: Building SWR is 2x (yes two) times slower than all the other
288 # gallium drivers combined.
289 # Start this early so that it doesn't limit the total run time.
291 # We also stick the glvnd build here, since we want non-glvnd in
292 # meson-main for actual driver CI.
294 extends: .meson-build
302 -D gallium-vdpau=false
303 -D gallium-xvmc=false
304 -D gallium-omx=disabled
307 -D gallium-nine=false
308 -D gallium-opencl=disabled
309 GALLIUM_DRIVERS: "swr,iris"
313 extends: .meson-build
317 GALLIUM_DRIVERS: "auto"
318 VULKAN_DRIVERS: intel,amd,freedreno
320 CXX: "ccache clang++-8"
327 - $ENV:VERSION = "2019\Community"
329 - cmd /C .gitlab-ci\meson-build.bat
332 extends: .scons-build
334 SCONS_TARGET: "swr=1"
335 SCONS_CHECK_COMMAND: "true"
339 extends: .scons-build
341 SCONS_TARGET: platform=windows machine=x86_64
342 SCONS_CHECK_COMMAND: "true"
345 extends: .meson-build
354 -D gallium-vdpau=false
355 -D gallium-xvmc=false
356 -D gallium-omx=disabled
359 -D gallium-nine=false
360 -D gallium-opencl=icd
362 - export GALLIUM_DRIVERS="r600,radeonsi"
363 - .gitlab-ci/meson-build.sh
364 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
365 - export GALLIUM_DRIVERS="i915,r600"
366 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
367 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
369 meson-clover-old-llvm:
372 - .use-debian-9:amd64
379 -D platforms=drm,surfaceless
380 GALLIUM_DRIVERS: "i915,r600"
382 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
383 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
384 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
387 extends: .meson-build
394 -D platforms=x11,wayland,drm
398 -D gallium-vdpau=false
399 -D gallium-xvmc=false
400 -D gallium-omx=disabled
403 -D gallium-nine=false
404 -D gallium-opencl=disabled
405 -D b_sanitize=undefined
406 -D c_args=-fno-sanitize-recover=all
407 -D cpp_args=-fno-sanitize-recover=all
408 UBSAN_OPTIONS: "print_stacktrace=1"
409 VULKAN_DRIVERS: intel,amd,freedreno
412 -D vulkan-overlay-layer=true
414 # While the main point of this build is testing the i386 cross build,
415 # we also use this one to test some other options that are exclusive
416 # with meson-main's choices (classic swrast and osmesa)
418 extends: .meson-cross
421 VULKAN_DRIVERS: intel
422 DRI_DRIVERS: "swrast"
423 GALLIUM_DRIVERS: "iris"
425 -D vulkan-overlay-layer=true
429 meson-mingw32-x86_64:
430 extends: .meson-build
434 GALLIUM_DRIVERS: "swrast"
438 --cross-file=.gitlab-ci/x86_64-w64-mingw32
441 extends: .scons-build
443 SCONS_TARGET: "llvm=1"
444 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
446 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
447 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
448 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
449 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
454 - .use-debian-9:amd64
456 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
457 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
458 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
461 extends: .ci-run-policy
464 GIT_STRATEGY: none # testing doesn't build anything from source
469 - .use-debian-10:amd64
471 DEQP_SKIPS: deqp-default-skips.txt
473 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
475 - tar -xf artifacts/install.tar
476 - LD_LIBRARY_PATH=install/lib ldd install/lib/{*,dri/swrast_dri}.so
477 - ./artifacts/deqp-runner.sh
480 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
493 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
494 LIBGL_ALWAYS_SOFTWARE: "true"
495 DEQP_RENDERER_MATCH: "llvmpipe"
499 extends: test-llvmpipe-gles2
501 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
502 DEQP_RENDERER_MATCH: "softpipe"
503 GALLIUM_DRIVER: "softpipe"
505 # The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is
506 # 25 minutes. Until we can get its runtime down, just do a partial
507 # (every 10 tests) run.
508 test-softpipe-gles3-limited:
511 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
512 LIBGL_ALWAYS_SOFTWARE: "true"
513 DEQP_RENDERER_MATCH: "softpipe"
514 GALLIUM_DRIVER: "softpipe"
521 image: $DEBIAN_ARM64_TEST_IMAGE
524 DEQP_RENDERER_MATCH: "FD630"
525 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
526 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
534 - debian-10-test:arm64
537 extends: arm64_a630_gles2
544 extends: arm64_a630_gles2
550 extends: arm64_a630_gles2
552 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
553 DEQP_SKIPS: deqp-default-skips.txt
554 DEQP_RENDERER_MATCH: "FD307"