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'
37 # When to automatically run the CI
46 - runner_system_failure
53 # Watch out! Artifacts are relative to the build dir.
54 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
57 # Build the normal CI native and cross-build docker images.
61 - .debian@container-ifnot-exists
65 GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
66 DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
71 DEBIAN_TAG: $STRETCH_TAG
72 DEBIAN_VERSION: $STRETCH_VERSION
73 DEBIAN_IMAGE: $STRETCH_IMAGE
74 DEBIAN_EXEC: 'bash .gitlab-ci/debian-stretch-install.sh'
81 # Builds a Docker image with the native environment and VK-GL-CTS for testing.
84 - .debian@container-ifnot-exists@arm64v8
88 DEBIAN_TAG: "$DEBIAN_ARM64_TAG"
89 GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
90 DEBIAN_EXEC: 'bash .gitlab-ci/debian-test-install.sh'
95 extends: .ci-run-policy
107 - _build/meson-logs/*.txt
112 CCACHE_COMPILERCHECK: "content"
113 # Use ccache transparently, and print stats before/after
115 - export PATH="/usr/lib/ccache:$PATH"
116 - export CCACHE_BASEDIR="$PWD"
117 - export CCACHE_DIR="$PWD/ccache"
118 - ccache --max-size=1500M
119 - ccache --zero-stats || true
120 - ccache --show-stats || true
122 # In case the install dir is being saved as artifacts, tar it up
123 # so that symlinks and hardlinks aren't each packed separately in
125 - if [ -d install ]; then
126 tar -cf artifacts/install.tar install;
128 - export CCACHE_DIR="$PWD/ccache"
129 - ccache --show-stats
134 - .gitlab-ci/meson-build.sh
141 - .gitlab-ci/scons-build.sh
153 -D platforms=x11,wayland,drm,surfaceless
154 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
157 -D gallium-extra-hud=true
158 -D gallium-vdpau=true
160 -D gallium-omx=bellagio
164 -D gallium-opencl=disabled
165 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima"
170 MESON_SHADERDB: "true"
171 BUILDTYPE: "debugoptimized"
183 -D platforms=surfaceless
187 -D gallium-vdpau=false
188 -D gallium-xvmc=false
189 -D gallium-omx=disabled
192 -D gallium-nine=false
195 - .gitlab-ci/meson-build.sh
198 extends: .meson-cross
201 VULKAN_DRIVERS: freedreno
202 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,tegra,v3d,vc4"
203 # Disable the tests since we're cross compiling.
206 -D I-love-half-baked-turnips=true
207 -D vulkan-overlay-layer=true
213 BUILDTYPE: "debugoptimized"
215 # NOTE: Building SWR is 2x (yes two) times slower than all the other
216 # gallium drivers combined.
217 # Start this early so that it doesn't limit the total run time.
219 # We also stick the glvnd build here, since we want non-glvnd in
220 # meson-main for actual driver CI.
222 extends: .meson-build
230 -D gallium-vdpau=false
231 -D gallium-xvmc=false
232 -D gallium-omx=disabled
235 -D gallium-nine=false
236 -D gallium-opencl=disabled
237 GALLIUM_DRIVERS: "swr,iris"
241 extends: .meson-build
245 GALLIUM_DRIVERS: "auto"
246 VULKAN_DRIVERS: intel,amd,freedreno
248 CXX: "ccache clang++-8"
251 extends: .scons-build
253 SCONS_TARGET: "swr=1"
254 SCONS_CHECK_COMMAND: "true"
258 extends: .scons-build
260 SCONS_TARGET: platform=windows machine=x86_64
261 SCONS_CHECK_COMMAND: "true"
264 extends: .meson-build
273 -D gallium-vdpau=false
274 -D gallium-xvmc=false
275 -D gallium-omx=disabled
278 -D gallium-nine=false
279 -D gallium-opencl=icd
281 - export GALLIUM_DRIVERS="r600,radeonsi"
282 - .gitlab-ci/meson-build.sh
283 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
284 - export GALLIUM_DRIVERS="i915,r600"
285 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
286 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
288 meson-clover-old-llvm:
298 -D platforms=drm,surfaceless
299 GALLIUM_DRIVERS: "i915,r600"
301 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
302 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
303 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
306 extends: .meson-build
313 -D platforms=x11,wayland,drm
317 -D gallium-vdpau=false
318 -D gallium-xvmc=false
319 -D gallium-omx=disabled
322 -D gallium-nine=false
323 -D gallium-opencl=disabled
324 VULKAN_DRIVERS: intel,amd,freedreno
327 -D vulkan-overlay-layer=true
329 # While the main point of this build is testing the i386 cross build,
330 # we also use this one to test some other options that are exclusive
331 # with meson-main's choices (classic swrast and osmesa)
333 extends: .meson-cross
336 VULKAN_DRIVERS: intel
337 DRI_DRIVERS: "swrast"
338 GALLIUM_DRIVERS: "iris"
340 -D vulkan-overlay-layer=true
345 extends: .scons-build
347 SCONS_TARGET: "llvm=1"
348 SCONS_CHECK_COMMAND: "scons llvm=1 check"
350 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check" .gitlab-ci/scons-build.sh
351 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
352 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
353 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
360 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
361 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
362 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
365 extends: .ci-run-policy
369 GIT_STRATEGY: none # testing doesn't build anything from source
370 DEQP_SKIPS: deqp-default-skips.txt
372 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
374 - tar -xf artifacts/install.tar
375 - ./artifacts/deqp-runner.sh
378 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
389 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
390 LIBGL_ALWAYS_SOFTWARE: "true"
391 DEQP_RENDERER_MATCH: "llvmpipe"
395 extends: test-llvmpipe-gles2
397 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
398 DEQP_RENDERER_MATCH: "softpipe"
399 GALLIUM_DRIVER: "softpipe"
401 # The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is
402 # 25 minutes. Until we can get its runtime down, just do a partial
403 # (every 10 tests) run.
404 test-softpipe-gles3-limited:
407 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
408 LIBGL_ALWAYS_SOFTWARE: "true"
409 DEQP_RENDERER_MATCH: "softpipe"
410 GALLIUM_DRIVER: "softpipe"
417 image: $DEBIAN_ARM64_IMAGE
420 DEQP_RENDERER_MATCH: "FD630"
421 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
422 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
430 - test-container:arm64
433 extends: arm64_a630_gles2
440 extends: arm64_a630_gles2
446 extends: arm64_a630_gles2
448 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
449 DEQP_SKIPS: deqp-default-skips.txt
450 DEQP_RENDERER_MATCH: "FD307"