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'
106 # Shared between windows and Linux
108 extends: .ci-run-policy
113 - _build/meson-logs/*.txt
120 extends: .build-common
126 CCACHE_COMPILERCHECK: "content"
127 # Use ccache transparently, and print stats before/after
129 - export PATH="/usr/lib/ccache:$PATH"
130 - export CCACHE_BASEDIR="$PWD"
131 - export CCACHE_DIR="$PWD/ccache"
132 - ccache --max-size=1500M
133 - ccache --zero-stats || true
134 - ccache --show-stats || true
136 # In case the install dir is being saved as artifacts, tar it up
137 # so that symlinks and hardlinks aren't each packed separately in
139 - if [ -d install ]; then
140 tar -cf artifacts/install.tar install;
142 - export CCACHE_DIR="$PWD/ccache"
143 - ccache --show-stats
148 - .use-debian-10:amd64
150 - .gitlab-ci/meson-build.sh
155 - .use-debian-10:amd64
159 - .gitlab-ci/scons-build.sh
171 -D platforms=x11,wayland,drm,surfaceless
172 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
175 -D gallium-extra-hud=true
176 -D gallium-vdpau=true
178 -D gallium-omx=bellagio
182 -D gallium-opencl=disabled
183 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima"
188 MESON_SHADERDB: "true"
189 BUILDTYPE: "debugoptimized"
200 -D platforms=surfaceless
204 -D gallium-vdpau=false
205 -D gallium-xvmc=false
206 -D gallium-omx=disabled
209 -D gallium-nine=false
212 extends: .meson-cross
213 image: $DEBIAN_ARM64_IMAGE
215 VULKAN_DRIVERS: freedreno
216 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
218 -D I-love-half-baked-turnips=true
235 BUILDTYPE: "debugoptimized"
237 # NOTE: Building SWR is 2x (yes two) times slower than all the other
238 # gallium drivers combined.
239 # Start this early so that it doesn't limit the total run time.
241 # We also stick the glvnd build here, since we want non-glvnd in
242 # meson-main for actual driver CI.
244 extends: .meson-build
252 -D gallium-vdpau=false
253 -D gallium-xvmc=false
254 -D gallium-omx=disabled
257 -D gallium-nine=false
258 -D gallium-opencl=disabled
259 GALLIUM_DRIVERS: "swr,iris"
263 extends: .meson-build
267 GALLIUM_DRIVERS: "auto"
268 VULKAN_DRIVERS: intel,amd,freedreno
270 CXX: "ccache clang++-8"
273 extends: .scons-build
275 SCONS_TARGET: "swr=1"
276 SCONS_CHECK_COMMAND: "true"
280 extends: .scons-build
282 SCONS_TARGET: platform=windows machine=x86_64
283 SCONS_CHECK_COMMAND: "true"
286 extends: .meson-build
295 -D gallium-vdpau=false
296 -D gallium-xvmc=false
297 -D gallium-omx=disabled
300 -D gallium-nine=false
301 -D gallium-opencl=icd
303 - export GALLIUM_DRIVERS="r600,radeonsi"
304 - .gitlab-ci/meson-build.sh
305 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
306 - export GALLIUM_DRIVERS="i915,r600"
307 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
308 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
310 meson-clover-old-llvm:
313 - .use-debian-9:amd64
320 -D platforms=drm,surfaceless
321 GALLIUM_DRIVERS: "i915,r600"
323 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
324 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
325 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
328 extends: .meson-build
335 -D platforms=x11,wayland,drm
339 -D gallium-vdpau=false
340 -D gallium-xvmc=false
341 -D gallium-omx=disabled
344 -D gallium-nine=false
345 -D gallium-opencl=disabled
346 -D b_sanitize=undefined
347 -D c_args=-fno-sanitize-recover=all
348 -D cpp_args=-fno-sanitize-recover=all
349 UBSAN_OPTIONS: "print_stacktrace=1"
350 VULKAN_DRIVERS: intel,amd,freedreno
353 -D vulkan-overlay-layer=true
355 # While the main point of this build is testing the i386 cross build,
356 # we also use this one to test some other options that are exclusive
357 # with meson-main's choices (classic swrast and osmesa)
359 extends: .meson-cross
362 VULKAN_DRIVERS: intel
363 DRI_DRIVERS: "swrast"
364 GALLIUM_DRIVERS: "iris"
366 -D vulkan-overlay-layer=true
370 meson-mingw32-x86_64:
371 extends: .meson-build
375 GALLIUM_DRIVERS: "swrast"
379 --cross-file=.gitlab-ci/x86_64-w64-mingw32
382 extends: .scons-build
384 SCONS_TARGET: "llvm=1"
385 SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check"
387 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
388 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
389 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
390 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
395 - .use-debian-9:amd64
397 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
398 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
399 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
402 extends: .ci-run-policy
405 GIT_STRATEGY: none # testing doesn't build anything from source
410 - .use-debian-10:amd64
412 DEQP_SKIPS: deqp-default-skips.txt
414 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
416 - tar -xf artifacts/install.tar
417 - ./artifacts/deqp-runner.sh
420 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
433 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
434 LIBGL_ALWAYS_SOFTWARE: "true"
435 DEQP_RENDERER_MATCH: "llvmpipe"
439 extends: test-llvmpipe-gles2
441 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
442 DEQP_RENDERER_MATCH: "softpipe"
443 GALLIUM_DRIVER: "softpipe"
445 # The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is
446 # 25 minutes. Until we can get its runtime down, just do a partial
447 # (every 10 tests) run.
448 test-softpipe-gles3-limited:
451 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
452 LIBGL_ALWAYS_SOFTWARE: "true"
453 DEQP_RENDERER_MATCH: "softpipe"
454 GALLIUM_DRIVER: "softpipe"
461 image: $DEBIAN_ARM64_IMAGE
464 DEQP_RENDERER_MATCH: "FD630"
465 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
466 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
477 extends: arm64_a630_gles2
484 extends: arm64_a630_gles2
490 extends: arm64_a630_gles2
492 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
493 DEQP_SKIPS: deqp-default-skips.txt
494 DEQP_RENDERER_MATCH: "FD307"