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-22"
18 DEBIAN_ARM64_TAG: "arm64v8-2019-10-22"
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
49 - runner_system_failure
56 # Watch out! Artifacts are relative to the build dir.
57 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
60 # Build the normal CI native and cross-build docker images.
67 # no need to pull the whole repo to build the container image
72 - .debian@container-ifnot-exists
75 DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
83 extends: debian-10:amd64
85 DEBIAN_TAG: $STRETCH_TAG
86 DEBIAN_VERSION: $STRETCH_VERSION
87 DEBIAN_IMAGE: $STRETCH_IMAGE
88 DEBIAN_EXEC: 'bash .gitlab-ci/debian-stretch-install.sh'
97 - .debian@container-ifnot-exists@arm64v8
100 DEBIAN_TAG: "$DEBIAN_ARM64_TAG"
101 DEBIAN_EXEC: 'bash .gitlab-ci/debian-arm64-install.sh'
107 extends: .ci-run-policy
116 - _build/meson-logs/*.txt
121 CCACHE_COMPILERCHECK: "content"
122 # Use ccache transparently, and print stats before/after
124 - export PATH="/usr/lib/ccache:$PATH"
125 - export CCACHE_BASEDIR="$PWD"
126 - export CCACHE_DIR="$PWD/ccache"
127 - ccache --max-size=1500M
128 - ccache --zero-stats || true
129 - ccache --show-stats || true
131 # In case the install dir is being saved as artifacts, tar it up
132 # so that symlinks and hardlinks aren't each packed separately in
134 - if [ -d install ]; then
135 tar -cf artifacts/install.tar install;
137 - export CCACHE_DIR="$PWD/ccache"
138 - ccache --show-stats
143 - .use-debian-10:amd64
145 - .gitlab-ci/meson-build.sh
150 - .use-debian-10:amd64
154 - .gitlab-ci/scons-build.sh
166 -D platforms=x11,wayland,drm,surfaceless
167 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
170 -D gallium-extra-hud=true
171 -D gallium-vdpau=true
173 -D gallium-omx=bellagio
177 -D gallium-opencl=disabled
178 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima"
183 MESON_SHADERDB: "true"
184 BUILDTYPE: "debugoptimized"
195 -D platforms=surfaceless
199 -D gallium-vdpau=false
200 -D gallium-xvmc=false
201 -D gallium-omx=disabled
204 -D gallium-nine=false
207 extends: .meson-cross
208 image: $DEBIAN_ARM64_IMAGE
210 VULKAN_DRIVERS: freedreno
211 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
213 -D I-love-half-baked-turnips=true
230 BUILDTYPE: "debugoptimized"
232 # NOTE: Building SWR is 2x (yes two) times slower than all the other
233 # gallium drivers combined.
234 # Start this early so that it doesn't limit the total run time.
236 # We also stick the glvnd build here, since we want non-glvnd in
237 # meson-main for actual driver CI.
239 extends: .meson-build
247 -D gallium-vdpau=false
248 -D gallium-xvmc=false
249 -D gallium-omx=disabled
252 -D gallium-nine=false
253 -D gallium-opencl=disabled
254 GALLIUM_DRIVERS: "swr,iris"
258 extends: .meson-build
262 GALLIUM_DRIVERS: "auto"
263 VULKAN_DRIVERS: intel,amd,freedreno
265 CXX: "ccache clang++-8"
268 extends: .scons-build
270 SCONS_TARGET: "swr=1"
271 SCONS_CHECK_COMMAND: "true"
275 extends: .scons-build
277 SCONS_TARGET: platform=windows machine=x86_64
278 SCONS_CHECK_COMMAND: "true"
281 extends: .meson-build
290 -D gallium-vdpau=false
291 -D gallium-xvmc=false
292 -D gallium-omx=disabled
295 -D gallium-nine=false
296 -D gallium-opencl=icd
298 - export GALLIUM_DRIVERS="r600,radeonsi"
299 - .gitlab-ci/meson-build.sh
300 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
301 - export GALLIUM_DRIVERS="i915,r600"
302 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
303 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
305 meson-clover-old-llvm:
308 - .use-debian-9:amd64
315 -D platforms=drm,surfaceless
316 GALLIUM_DRIVERS: "i915,r600"
318 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
319 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
320 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
323 extends: .meson-build
330 -D platforms=x11,wayland,drm
334 -D gallium-vdpau=false
335 -D gallium-xvmc=false
336 -D gallium-omx=disabled
339 -D gallium-nine=false
340 -D gallium-opencl=disabled
341 -D b_sanitize=undefined
342 -D c_args=-fno-sanitize-recover=all
343 -D cpp_args=-fno-sanitize-recover=all
344 UBSAN_OPTIONS: "print_stacktrace=1"
345 VULKAN_DRIVERS: intel,amd,freedreno
348 -D vulkan-overlay-layer=true
350 # While the main point of this build is testing the i386 cross build,
351 # we also use this one to test some other options that are exclusive
352 # with meson-main's choices (classic swrast and osmesa)
354 extends: .meson-cross
357 VULKAN_DRIVERS: intel
358 DRI_DRIVERS: "swrast"
359 GALLIUM_DRIVERS: "iris"
361 -D vulkan-overlay-layer=true
365 meson-mingw32-x86_64:
366 extends: .meson-build
370 GALLIUM_DRIVERS: "swrast"
374 --cross-file=.gitlab-ci/x86_64-w64-mingw32
377 extends: .scons-build
379 SCONS_TARGET: "llvm=1"
380 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
382 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
383 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
384 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
385 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
390 - .use-debian-9:amd64
392 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
393 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
394 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
397 extends: .ci-run-policy
400 GIT_STRATEGY: none # testing doesn't build anything from source
405 - .use-debian-10:amd64
407 DEQP_SKIPS: deqp-default-skips.txt
409 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
411 - tar -xf artifacts/install.tar
412 - ./artifacts/deqp-runner.sh
415 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
428 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
429 LIBGL_ALWAYS_SOFTWARE: "true"
430 DEQP_RENDERER_MATCH: "llvmpipe"
434 extends: test-llvmpipe-gles2
436 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
437 DEQP_RENDERER_MATCH: "softpipe"
438 GALLIUM_DRIVER: "softpipe"
440 # The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is
441 # 25 minutes. Until we can get its runtime down, just do a partial
442 # (every 10 tests) run.
443 test-softpipe-gles3-limited:
446 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
447 LIBGL_ALWAYS_SOFTWARE: "true"
448 DEQP_RENDERER_MATCH: "softpipe"
449 GALLIUM_DRIVER: "softpipe"
456 image: $DEBIAN_ARM64_IMAGE
459 DEQP_RENDERER_MATCH: "FD630"
460 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
461 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
472 extends: arm64_a630_gles2
479 extends: arm64_a630_gles2
485 extends: arm64_a630_gles2
487 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
488 DEQP_SKIPS: deqp-default-skips.txt
489 DEQP_RENDERER_MATCH: "FD307"