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'
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
104 - _build/meson-logs/*.txt
109 CCACHE_COMPILERCHECK: "content"
110 # Use ccache transparently, and print stats before/after
112 - export PATH="/usr/lib/ccache:$PATH"
113 - export CCACHE_BASEDIR="$PWD"
114 - export CCACHE_DIR="$PWD/ccache"
115 - ccache --zero-stats || true
116 - ccache --show-stats || true
118 # In case the install dir is being saved as artifacts, tar it up
119 # so that symlinks and hardlinks aren't each packed separately in
121 - if [ -d install ]; then
122 tar -cf artifacts/install.tar install;
124 - export CCACHE_DIR="$PWD/ccache"
125 - ccache --show-stats
130 - .gitlab-ci/meson-build.sh
137 - .gitlab-ci/scons-build.sh
149 -D platforms=x11,wayland,drm,surfaceless
150 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
153 -D gallium-extra-hud=true
154 -D gallium-vdpau=true
156 -D gallium-omx=bellagio
160 -D gallium-opencl=disabled
161 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima"
166 MESON_SHADERDB: "true"
167 BUILDTYPE: "debugoptimized"
179 -D platforms=surfaceless
183 -D gallium-vdpau=false
184 -D gallium-xvmc=false
185 -D gallium-omx=disabled
188 -D gallium-nine=false
191 - .gitlab-ci/meson-build.sh
194 extends: .meson-cross
197 VULKAN_DRIVERS: freedreno
198 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,tegra,v3d,vc4"
199 # Disable the tests since we're cross compiling.
202 -D I-love-half-baked-turnips=true
203 -D vulkan-overlay-layer=true
209 BUILDTYPE: "debugoptimized"
211 # NOTE: Building SWR is 2x (yes two) times slower than all the other
212 # gallium drivers combined.
213 # Start this early so that it doesn't limit the total run time.
215 # We also stick the glvnd build here, since we want non-glvnd in
216 # meson-main for actual driver CI.
218 extends: .meson-build
226 -D gallium-vdpau=false
227 -D gallium-xvmc=false
228 -D gallium-omx=disabled
231 -D gallium-nine=false
232 -D gallium-opencl=disabled
233 GALLIUM_DRIVERS: "swr,iris"
237 extends: .meson-build
241 GALLIUM_DRIVERS: "auto"
242 VULKAN_DRIVERS: intel,amd,freedreno
244 CXX: "ccache clang++-8"
247 extends: .scons-build
249 SCONS_TARGET: "swr=1"
250 SCONS_CHECK_COMMAND: "true"
254 extends: .scons-build
256 SCONS_TARGET: platform=windows machine=x86_64
257 SCONS_CHECK_COMMAND: "true"
260 extends: .meson-build
269 -D gallium-vdpau=false
270 -D gallium-xvmc=false
271 -D gallium-omx=disabled
274 -D gallium-nine=false
275 -D gallium-opencl=icd
277 - export GALLIUM_DRIVERS="r600,radeonsi"
278 - .gitlab-ci/meson-build.sh
279 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
280 - export GALLIUM_DRIVERS="i915,r600"
281 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
282 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
284 meson-clover-old-llvm:
294 -D platforms=drm,surfaceless
295 GALLIUM_DRIVERS: "i915,r600"
297 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
298 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
299 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
302 extends: .meson-build
309 -D platforms=x11,wayland,drm
313 -D gallium-vdpau=false
314 -D gallium-xvmc=false
315 -D gallium-omx=disabled
318 -D gallium-nine=false
319 -D gallium-opencl=disabled
320 VULKAN_DRIVERS: intel,amd,freedreno
323 -D vulkan-overlay-layer=true
325 # While the main point of this build is testing the i386 cross build,
326 # we also use this one to test some other options that are exclusive
327 # with meson-main's choices (classic swrast and osmesa)
329 extends: .meson-cross
332 VULKAN_DRIVERS: intel
333 DRI_DRIVERS: "swrast"
334 GALLIUM_DRIVERS: "iris"
336 -D vulkan-overlay-layer=true
341 extends: .scons-build
343 SCONS_TARGET: "llvm=1"
344 SCONS_CHECK_COMMAND: "scons llvm=1 check"
346 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check" .gitlab-ci/scons-build.sh
347 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
348 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
349 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
356 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
357 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
358 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
361 extends: .ci-run-policy
365 GIT_STRATEGY: none # testing doesn't build anything from source
366 DEQP_SKIPS: deqp-default-skips.txt
368 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
370 - tar -xf artifacts/install.tar
371 - ./artifacts/deqp-runner.sh
374 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
385 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
386 LIBGL_ALWAYS_SOFTWARE: "true"
387 DEQP_RENDERER_MATCH: "llvmpipe"
391 extends: test-llvmpipe-gles2
393 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
394 DEQP_RENDERER_MATCH: "softpipe"
395 GALLIUM_DRIVER: "softpipe"
397 # The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is
398 # 25 minutes. Until we can get its runtime down, just do a partial
399 # (every 10 tests) run.
400 test-softpipe-gles3-limited:
403 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
404 LIBGL_ALWAYS_SOFTWARE: "true"
405 DEQP_RENDERER_MATCH: "softpipe"
406 GALLIUM_DRIVER: "softpipe"
413 image: $DEBIAN_ARM64_IMAGE
416 DEQP_RENDERER_MATCH: "FD630"
417 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
418 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
424 needs: [ meson-arm64 ]
427 extends: arm64_a630_gles2
434 extends: arm64_a630_gles2
440 extends: arm64_a630_gles2
442 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
443 DEQP_SKIPS: deqp-default-skips.txt
444 DEQP_RENDERER_MATCH: "FD307"