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-18"
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'
76 # Builds a Docker image with the native environment and VK-GL-CTS for testing.
79 - .debian@container-ifnot-exists@arm64v8
83 DEBIAN_TAG: "$DEBIAN_ARM64_TAG"
84 GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
85 DEBIAN_EXEC: 'bash .gitlab-ci/debian-test-install.sh'
90 extends: .ci-run-policy
99 - _build/meson-logs/*.txt
104 CCACHE_COMPILERCHECK: "content"
105 # Use ccache transparently, and print stats before/after
107 - export PATH="/usr/lib/ccache:$PATH"
108 - export CCACHE_BASEDIR="$PWD"
109 - export CCACHE_DIR="$PWD/ccache"
110 - ccache --zero-stats || true
111 - ccache --show-stats || true
113 # In case the install dir is being saved as artifacts, tar it up
114 # so that symlinks and hardlinks aren't each packed separately in
116 - if [ -d install ]; then
117 tar -cf artifacts/install.tar install;
119 - export CCACHE_DIR="$PWD/ccache"
120 - ccache --show-stats
125 - .gitlab-ci/meson-build.sh
132 - if test -n "$LLVM_VERSION"; then
133 export LLVM_CONFIG="llvm-config-${LLVM_VERSION}";
135 - scons $SCONS_TARGET
136 - eval $SCONS_CHECK_COMMAND
148 -D platforms=x11,wayland,drm,surfaceless
149 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
152 -D gallium-extra-hud=true
153 -D gallium-vdpau=true
155 -D gallium-omx=bellagio
159 -D gallium-opencl=disabled
160 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima"
165 MESON_SHADERDB: "true"
166 BUILDTYPE: "debugoptimized"
178 -D platforms=surfaceless
182 -D gallium-vdpau=false
183 -D gallium-xvmc=false
184 -D gallium-omx=disabled
187 -D gallium-nine=false
190 - .gitlab-ci/meson-build.sh
193 extends: .meson-cross
196 VULKAN_DRIVERS: freedreno
197 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,tegra,v3d,vc4"
198 # Disable the tests since we're cross compiling.
201 -D I-love-half-baked-turnips=true
202 -D vulkan-overlay-layer=true
208 BUILDTYPE: "debugoptimized"
210 # NOTE: Building SWR is 2x (yes two) times slower than all the other
211 # gallium drivers combined.
212 # Start this early so that it doesn't limit the total run time.
214 # We also stick the glvnd build here, since we want non-glvnd in
215 # meson-main for actual driver CI.
217 extends: .meson-build
225 -D gallium-vdpau=false
226 -D gallium-xvmc=false
227 -D gallium-omx=disabled
230 -D gallium-nine=false
231 -D gallium-opencl=disabled
232 GALLIUM_DRIVERS: "swr,iris"
236 extends: .meson-build
240 GALLIUM_DRIVERS: "auto"
241 VULKAN_DRIVERS: intel,amd,freedreno
243 CXX: "ccache clang++-8"
246 extends: .scons-build
248 SCONS_TARGET: "swr=1"
249 SCONS_CHECK_COMMAND: "true"
253 extends: .scons-build
255 SCONS_TARGET: platform=windows machine=x86_64
256 SCONS_CHECK_COMMAND: "true"
259 extends: .meson-build
268 -D gallium-vdpau=false
269 -D gallium-xvmc=false
270 -D gallium-omx=disabled
273 -D gallium-nine=false
274 -D gallium-opencl=icd
276 - export GALLIUM_DRIVERS="r600,radeonsi"
277 - .gitlab-ci/meson-build.sh
278 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
279 - export GALLIUM_DRIVERS="i915,r600"
280 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
281 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
283 meson-clover-old-llvm:
284 extends: meson-clover
285 image: $STRETCH_IMAGE
292 -D platforms=drm,surfaceless
293 GALLIUM_DRIVERS: "i915,r600"
295 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
296 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
297 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
300 extends: .meson-build
307 -D platforms=x11,wayland,drm
311 -D gallium-vdpau=false
312 -D gallium-xvmc=false
313 -D gallium-omx=disabled
316 -D gallium-nine=false
317 -D gallium-opencl=disabled
318 VULKAN_DRIVERS: intel,amd,freedreno
321 -D vulkan-overlay-layer=true
323 # While the main point of this build is testing the i386 cross build,
324 # we also use this one to test some other options that are exclusive
325 # with meson-main's choices (classic swrast and osmesa)
327 extends: .meson-cross
330 VULKAN_DRIVERS: intel
331 DRI_DRIVERS: "swrast"
332 GALLIUM_DRIVERS: "iris"
334 -D vulkan-overlay-layer=true
339 extends: .scons-build
341 SCONS_TARGET: "llvm=0"
342 SCONS_CHECK_COMMAND: "scons llvm=0 check"
345 extends: .scons-build
347 SCONS_TARGET: "llvm=1"
348 SCONS_CHECK_COMMAND: "scons llvm=1 check"
353 image: $STRETCH_IMAGE
358 extends: .ci-run-policy
362 GIT_STRATEGY: none # testing doesn't build anything from source
363 DEQP_SKIPS: deqp-default-skips.txt
365 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
367 - tar -xf artifacts/install.tar
368 - ./artifacts/deqp-runner.sh
371 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
382 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
383 LIBGL_ALWAYS_SOFTWARE: "true"
384 DEQP_RENDERER_MATCH: "llvmpipe"
388 extends: test-llvmpipe-gles2
390 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
391 DEQP_RENDERER_MATCH: "softpipe"
392 GALLIUM_DRIVER: "softpipe"
394 # The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is
395 # 25 minutes. Until we can get its runtime down, just do a partial
396 # (every 10 tests) run.
397 test-softpipe-gles3-limited:
400 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
401 LIBGL_ALWAYS_SOFTWARE: "true"
402 DEQP_RENDERER_MATCH: "softpipe"
403 GALLIUM_DRIVER: "softpipe"
410 image: $DEBIAN_ARM64_IMAGE
413 DEQP_RENDERER_MATCH: "FD630"
414 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
415 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
421 needs: [ meson-arm64 ]
424 extends: arm64_a630_gles2
431 extends: arm64_a630_gles2
437 extends: arm64_a630_gles2
439 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
440 DEQP_SKIPS: deqp-default-skips.txt
441 DEQP_RENDERER_MATCH: "FD307"