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-07_1"
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.
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'
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'
95 # Builds a Docker image with the native environment and VK-GL-CTS for testing.
98 - .debian@container-ifnot-exists@arm64v8
101 DEBIAN_TAG: "$DEBIAN_ARM64_TAG"
102 DEBIAN_EXEC: 'bash .gitlab-ci/debian-test-install.sh'
108 extends: .ci-run-policy
117 - _build/meson-logs/*.txt
122 CCACHE_COMPILERCHECK: "content"
123 # Use ccache transparently, and print stats before/after
125 - export PATH="/usr/lib/ccache:$PATH"
126 - export CCACHE_BASEDIR="$PWD"
127 - export CCACHE_DIR="$PWD/ccache"
128 - ccache --max-size=1500M
129 - ccache --zero-stats || true
130 - ccache --show-stats || true
132 # In case the install dir is being saved as artifacts, tar it up
133 # so that symlinks and hardlinks aren't each packed separately in
135 - if [ -d install ]; then
136 tar -cf artifacts/install.tar install;
138 - export CCACHE_DIR="$PWD/ccache"
139 - ccache --show-stats
146 - .gitlab-ci/meson-build.sh
155 - .gitlab-ci/scons-build.sh
167 -D platforms=x11,wayland,drm,surfaceless
168 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
171 -D gallium-extra-hud=true
172 -D gallium-vdpau=true
174 -D gallium-omx=bellagio
178 -D gallium-opencl=disabled
179 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima"
184 MESON_SHADERDB: "true"
185 BUILDTYPE: "debugoptimized"
197 -D platforms=surfaceless
201 -D gallium-vdpau=false
202 -D gallium-xvmc=false
203 -D gallium-omx=disabled
206 -D gallium-nine=false
210 extends: .meson-cross
213 VULKAN_DRIVERS: freedreno
214 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,tegra,v3d,vc4"
215 # Disable the tests since we're cross compiling.
218 -D I-love-half-baked-turnips=true
219 -D vulkan-overlay-layer=true
225 BUILDTYPE: "debugoptimized"
227 # NOTE: Building SWR is 2x (yes two) times slower than all the other
228 # gallium drivers combined.
229 # Start this early so that it doesn't limit the total run time.
231 # We also stick the glvnd build here, since we want non-glvnd in
232 # meson-main for actual driver CI.
234 extends: .meson-build
242 -D gallium-vdpau=false
243 -D gallium-xvmc=false
244 -D gallium-omx=disabled
247 -D gallium-nine=false
248 -D gallium-opencl=disabled
249 GALLIUM_DRIVERS: "swr,iris"
253 extends: .meson-build
257 GALLIUM_DRIVERS: "auto"
258 VULKAN_DRIVERS: intel,amd,freedreno
260 CXX: "ccache clang++-8"
263 extends: .scons-build
265 SCONS_TARGET: "swr=1"
266 SCONS_CHECK_COMMAND: "true"
270 extends: .scons-build
272 SCONS_TARGET: platform=windows machine=x86_64
273 SCONS_CHECK_COMMAND: "true"
276 extends: .meson-build
285 -D gallium-vdpau=false
286 -D gallium-xvmc=false
287 -D gallium-omx=disabled
290 -D gallium-nine=false
291 -D gallium-opencl=icd
293 - export GALLIUM_DRIVERS="r600,radeonsi"
294 - .gitlab-ci/meson-build.sh
295 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
296 - export GALLIUM_DRIVERS="i915,r600"
297 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
298 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
300 meson-clover-old-llvm:
310 -D platforms=drm,surfaceless
311 GALLIUM_DRIVERS: "i915,r600"
313 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
314 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
315 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
318 extends: .meson-build
325 -D platforms=x11,wayland,drm
329 -D gallium-vdpau=false
330 -D gallium-xvmc=false
331 -D gallium-omx=disabled
334 -D gallium-nine=false
335 -D gallium-opencl=disabled
336 VULKAN_DRIVERS: intel,amd,freedreno
339 -D vulkan-overlay-layer=true
341 # While the main point of this build is testing the i386 cross build,
342 # we also use this one to test some other options that are exclusive
343 # with meson-main's choices (classic swrast and osmesa)
345 extends: .meson-cross
348 VULKAN_DRIVERS: intel
349 DRI_DRIVERS: "swrast"
350 GALLIUM_DRIVERS: "iris"
352 -D vulkan-overlay-layer=true
356 .meson-mingw32-x86_64:
357 extends: .meson-build
361 GALLIUM_DRIVERS: "swrast"
365 --cross-file=.gitlab-ci/x86_64-w64-mingw32
368 extends: .scons-build
370 SCONS_TARGET: "llvm=1"
371 SCONS_CHECK_COMMAND: "scons llvm=1 check"
373 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check" .gitlab-ci/scons-build.sh
374 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
375 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
376 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
383 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
384 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
385 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
388 extends: .use-debian-10
391 GIT_STRATEGY: none # testing doesn't build anything from source
392 DEQP_SKIPS: deqp-default-skips.txt
394 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
396 - tar -xf artifacts/install.tar
397 - ./artifacts/deqp-runner.sh
400 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
411 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
412 LIBGL_ALWAYS_SOFTWARE: "true"
413 DEQP_RENDERER_MATCH: "llvmpipe"
417 extends: test-llvmpipe-gles2
419 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
420 DEQP_RENDERER_MATCH: "softpipe"
421 GALLIUM_DRIVER: "softpipe"
423 # The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is
424 # 25 minutes. Until we can get its runtime down, just do a partial
425 # (every 10 tests) run.
426 test-softpipe-gles3-limited:
429 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
430 LIBGL_ALWAYS_SOFTWARE: "true"
431 DEQP_RENDERER_MATCH: "softpipe"
432 GALLIUM_DRIVER: "softpipe"
439 image: $DEBIAN_ARM64_IMAGE
442 DEQP_RENDERER_MATCH: "FD630"
443 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
444 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
452 - test-container:arm64
455 extends: arm64_a630_gles2
462 extends: arm64_a630_gles2
468 extends: arm64_a630_gles2
470 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
471 DEQP_SKIPS: deqp-default-skips.txt
472 DEQP_RENDERER_MATCH: "FD307"