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-09-30"
18 DEBIAN_ARM64_TAG: "arm64v8-2019-08-09"
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.
64 - .debian@container-ifnot-exists
68 GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
69 DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
74 DEBIAN_TAG: $STRETCH_TAG
75 DEBIAN_VERSION: $STRETCH_VERSION
76 DEBIAN_IMAGE: $STRETCH_IMAGE
77 DEBIAN_EXEC: 'bash .gitlab-ci/debian-stretch-install.sh'
84 # Builds a Docker image with the native environment and VK-GL-CTS for testing.
87 - .debian@container-ifnot-exists@arm64v8
91 DEBIAN_TAG: "$DEBIAN_ARM64_TAG"
92 GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
93 DEBIAN_EXEC: 'bash .gitlab-ci/debian-test-install.sh'
98 extends: .ci-run-policy
110 - _build/meson-logs/*.txt
115 CCACHE_COMPILERCHECK: "content"
116 # Use ccache transparently, and print stats before/after
118 - export PATH="/usr/lib/ccache:$PATH"
119 - export CCACHE_BASEDIR="$PWD"
120 - export CCACHE_DIR="$PWD/ccache"
121 - ccache --max-size=1500M
122 - ccache --zero-stats || true
123 - ccache --show-stats || true
125 # In case the install dir is being saved as artifacts, tar it up
126 # so that symlinks and hardlinks aren't each packed separately in
128 - if [ -d install ]; then
129 tar -cf artifacts/install.tar install;
131 - export CCACHE_DIR="$PWD/ccache"
132 - ccache --show-stats
137 - .gitlab-ci/meson-build.sh
144 - .gitlab-ci/scons-build.sh
156 -D platforms=x11,wayland,drm,surfaceless
157 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
160 -D gallium-extra-hud=true
161 -D gallium-vdpau=true
163 -D gallium-omx=bellagio
167 -D gallium-opencl=disabled
168 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima"
173 MESON_SHADERDB: "true"
174 BUILDTYPE: "debugoptimized"
186 -D platforms=surfaceless
190 -D gallium-vdpau=false
191 -D gallium-xvmc=false
192 -D gallium-omx=disabled
195 -D gallium-nine=false
198 - .gitlab-ci/meson-build.sh
201 extends: .meson-cross
204 VULKAN_DRIVERS: freedreno
205 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,tegra,v3d,vc4"
206 # Disable the tests since we're cross compiling.
209 -D I-love-half-baked-turnips=true
210 -D vulkan-overlay-layer=true
216 BUILDTYPE: "debugoptimized"
218 # NOTE: Building SWR is 2x (yes two) times slower than all the other
219 # gallium drivers combined.
220 # Start this early so that it doesn't limit the total run time.
222 # We also stick the glvnd build here, since we want non-glvnd in
223 # meson-main for actual driver CI.
225 extends: .meson-build
233 -D gallium-vdpau=false
234 -D gallium-xvmc=false
235 -D gallium-omx=disabled
238 -D gallium-nine=false
239 -D gallium-opencl=disabled
240 GALLIUM_DRIVERS: "swr,iris"
244 extends: .meson-build
248 GALLIUM_DRIVERS: "auto"
249 VULKAN_DRIVERS: intel,amd,freedreno
251 CXX: "ccache clang++-8"
254 extends: .scons-build
256 SCONS_TARGET: "swr=1"
257 SCONS_CHECK_COMMAND: "true"
261 extends: .scons-build
263 SCONS_TARGET: platform=windows machine=x86_64
264 SCONS_CHECK_COMMAND: "true"
267 extends: .meson-build
276 -D gallium-vdpau=false
277 -D gallium-xvmc=false
278 -D gallium-omx=disabled
281 -D gallium-nine=false
282 -D gallium-opencl=icd
284 - export GALLIUM_DRIVERS="r600,radeonsi"
285 - .gitlab-ci/meson-build.sh
286 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
287 - export GALLIUM_DRIVERS="i915,r600"
288 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
289 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
291 meson-clover-old-llvm:
301 -D platforms=drm,surfaceless
302 GALLIUM_DRIVERS: "i915,r600"
304 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
305 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
306 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
309 extends: .meson-build
316 -D platforms=x11,wayland,drm
320 -D gallium-vdpau=false
321 -D gallium-xvmc=false
322 -D gallium-omx=disabled
325 -D gallium-nine=false
326 -D gallium-opencl=disabled
327 VULKAN_DRIVERS: intel,amd,freedreno
330 -D vulkan-overlay-layer=true
332 # While the main point of this build is testing the i386 cross build,
333 # we also use this one to test some other options that are exclusive
334 # with meson-main's choices (classic swrast and osmesa)
336 extends: .meson-cross
339 VULKAN_DRIVERS: intel
340 DRI_DRIVERS: "swrast"
341 GALLIUM_DRIVERS: "iris"
343 -D vulkan-overlay-layer=true
348 extends: .scons-build
350 SCONS_TARGET: "llvm=1"
351 SCONS_CHECK_COMMAND: "scons llvm=1 check"
353 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check" .gitlab-ci/scons-build.sh
354 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
355 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
356 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
363 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
364 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
365 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
368 extends: .ci-run-policy
372 GIT_STRATEGY: none # testing doesn't build anything from source
373 DEQP_SKIPS: deqp-default-skips.txt
375 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
377 - tar -xf artifacts/install.tar
378 - ./artifacts/deqp-runner.sh
381 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
392 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
393 LIBGL_ALWAYS_SOFTWARE: "true"
394 DEQP_RENDERER_MATCH: "llvmpipe"
398 extends: test-llvmpipe-gles2
400 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
401 DEQP_RENDERER_MATCH: "softpipe"
402 GALLIUM_DRIVER: "softpipe"
404 # The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is
405 # 25 minutes. Until we can get its runtime down, just do a partial
406 # (every 10 tests) run.
407 test-softpipe-gles3-limited:
410 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
411 LIBGL_ALWAYS_SOFTWARE: "true"
412 DEQP_RENDERER_MATCH: "softpipe"
413 GALLIUM_DRIVER: "softpipe"
420 image: $DEBIAN_ARM64_IMAGE
423 DEQP_RENDERER_MATCH: "FD630"
424 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
425 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
433 - test-container:arm64
436 extends: arm64_a630_gles2
443 extends: arm64_a630_gles2
449 extends: arm64_a630_gles2
451 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
452 DEQP_SKIPS: deqp-default-skips.txt
453 DEQP_RENDERER_MATCH: "FD307"