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 - if [ "$CCACHE_DIR" = "$CI_PROJECT_DIR/ccache" ]; then ccache --zero-stats; fi
163 - ccache --show-stats || true
165 # In case the install dir is being saved as artifacts, tar it up
166 # so that symlinks and hardlinks aren't each packed separately in
168 - if [ -d install ]; then
169 tar -cf artifacts/install.tar install;
171 - ccache --show-stats
174 extends: .build-common
180 - subprojects/packagecache
185 - .use-debian-10:amd64
187 - .gitlab-ci/meson-build.sh
192 - .use-debian-10:amd64
196 - .gitlab-ci/scons-build.sh
208 -D platforms=x11,wayland,drm,surfaceless
209 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
212 -D gallium-extra-hud=true
213 -D gallium-vdpau=true
215 -D gallium-omx=bellagio
219 -D gallium-opencl=disabled
220 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
225 MESON_SHADERDB: "true"
226 BUILDTYPE: "debugoptimized"
237 -D platforms=surfaceless
241 -D gallium-vdpau=false
242 -D gallium-xvmc=false
243 -D gallium-omx=disabled
246 -D gallium-nine=false
249 extends: .meson-cross
250 image: $DEBIAN_ARM64_IMAGE
252 VULKAN_DRIVERS: freedreno
253 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
255 -D I-love-half-baked-turnips=true
257 CCACHE_DIR: "$CI_PROJECT_DIR/ccache"
275 BUILDTYPE: "debugoptimized"
277 # NOTE: Building SWR is 2x (yes two) times slower than all the other
278 # gallium drivers combined.
279 # Start this early so that it doesn't limit the total run time.
281 # We also stick the glvnd build here, since we want non-glvnd in
282 # meson-main for actual driver CI.
284 extends: .meson-build
292 -D gallium-vdpau=false
293 -D gallium-xvmc=false
294 -D gallium-omx=disabled
297 -D gallium-nine=false
298 -D gallium-opencl=disabled
299 GALLIUM_DRIVERS: "swr,iris"
303 extends: .meson-build
307 GALLIUM_DRIVERS: "auto"
308 VULKAN_DRIVERS: intel,amd,freedreno
310 CXX: "ccache clang++-8"
317 - $ENV:VERSION = "2019\Community"
319 - cmd /C .gitlab-ci\meson-build.bat
322 extends: .scons-build
324 SCONS_TARGET: "swr=1"
325 SCONS_CHECK_COMMAND: "true"
329 extends: .scons-build
331 SCONS_TARGET: platform=windows machine=x86_64
332 SCONS_CHECK_COMMAND: "true"
335 extends: .meson-build
344 -D gallium-vdpau=false
345 -D gallium-xvmc=false
346 -D gallium-omx=disabled
349 -D gallium-nine=false
350 -D gallium-opencl=icd
352 - export GALLIUM_DRIVERS="r600,radeonsi"
353 - .gitlab-ci/meson-build.sh
354 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
355 - export GALLIUM_DRIVERS="i915,r600"
356 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
357 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
359 meson-clover-old-llvm:
362 - .use-debian-9:amd64
369 -D platforms=drm,surfaceless
370 GALLIUM_DRIVERS: "i915,r600"
372 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
373 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
374 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
377 extends: .meson-build
384 -D platforms=x11,wayland,drm
388 -D gallium-vdpau=false
389 -D gallium-xvmc=false
390 -D gallium-omx=disabled
393 -D gallium-nine=false
394 -D gallium-opencl=disabled
395 -D b_sanitize=undefined
396 -D c_args=-fno-sanitize-recover=all
397 -D cpp_args=-fno-sanitize-recover=all
398 UBSAN_OPTIONS: "print_stacktrace=1"
399 VULKAN_DRIVERS: intel,amd,freedreno
402 -D vulkan-overlay-layer=true
404 # While the main point of this build is testing the i386 cross build,
405 # we also use this one to test some other options that are exclusive
406 # with meson-main's choices (classic swrast and osmesa)
408 extends: .meson-cross
411 VULKAN_DRIVERS: intel
412 DRI_DRIVERS: "swrast"
413 GALLIUM_DRIVERS: "iris"
415 -D vulkan-overlay-layer=true
419 meson-mingw32-x86_64:
420 extends: .meson-build
424 GALLIUM_DRIVERS: "swrast"
428 --cross-file=.gitlab-ci/x86_64-w64-mingw32
431 extends: .scons-build
433 SCONS_TARGET: "llvm=1"
434 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
436 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
437 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
438 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
439 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
444 - .use-debian-9:amd64
446 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
447 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
448 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
451 extends: .ci-run-policy
454 GIT_STRATEGY: none # testing doesn't build anything from source
459 - .use-debian-10:amd64
461 DEQP_SKIPS: deqp-default-skips.txt
463 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
465 - tar -xf artifacts/install.tar
466 - ./artifacts/deqp-runner.sh
469 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
482 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
483 LIBGL_ALWAYS_SOFTWARE: "true"
484 DEQP_RENDERER_MATCH: "llvmpipe"
488 extends: test-llvmpipe-gles2
490 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
491 DEQP_RENDERER_MATCH: "softpipe"
492 GALLIUM_DRIVER: "softpipe"
494 # The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is
495 # 25 minutes. Until we can get its runtime down, just do a partial
496 # (every 10 tests) run.
497 test-softpipe-gles3-limited:
500 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
501 LIBGL_ALWAYS_SOFTWARE: "true"
502 DEQP_RENDERER_MATCH: "softpipe"
503 GALLIUM_DRIVER: "softpipe"
510 image: $DEBIAN_ARM64_IMAGE
513 DEQP_RENDERER_MATCH: "FD630"
514 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
515 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
526 extends: arm64_a630_gles2
533 extends: arm64_a630_gles2
539 extends: arm64_a630_gles2
541 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
542 DEQP_SKIPS: deqp-default-skips.txt
543 DEQP_RENDERER_MATCH: "FD307"