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'
78 extends: .ci-run-policy
86 DEBIAN_TAG: $STRETCH_TAG
87 DEBIAN_VERSION: $STRETCH_VERSION
88 DEBIAN_IMAGE: $STRETCH_IMAGE
89 DEBIAN_EXEC: 'bash .gitlab-ci/debian-stretch-install.sh'
96 # Builds a Docker image with the native environment and VK-GL-CTS for testing.
99 - .debian@container-ifnot-exists@arm64v8
102 DEBIAN_TAG: "$DEBIAN_ARM64_TAG"
103 DEBIAN_EXEC: 'bash .gitlab-ci/debian-test-install.sh'
109 extends: .use-debian-10
118 - _build/meson-logs/*.txt
123 CCACHE_COMPILERCHECK: "content"
124 # Use ccache transparently, and print stats before/after
126 - export PATH="/usr/lib/ccache:$PATH"
127 - export CCACHE_BASEDIR="$PWD"
128 - export CCACHE_DIR="$PWD/ccache"
129 - ccache --max-size=1500M
130 - ccache --zero-stats || true
131 - ccache --show-stats || true
133 # In case the install dir is being saved as artifacts, tar it up
134 # so that symlinks and hardlinks aren't each packed separately in
136 - if [ -d install ]; then
137 tar -cf artifacts/install.tar install;
139 - export CCACHE_DIR="$PWD/ccache"
140 - ccache --show-stats
145 - .gitlab-ci/meson-build.sh
152 - .gitlab-ci/scons-build.sh
164 -D platforms=x11,wayland,drm,surfaceless
165 DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
168 -D gallium-extra-hud=true
169 -D gallium-vdpau=true
171 -D gallium-omx=bellagio
175 -D gallium-opencl=disabled
176 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima"
181 MESON_SHADERDB: "true"
182 BUILDTYPE: "debugoptimized"
194 -D platforms=surfaceless
198 -D gallium-vdpau=false
199 -D gallium-xvmc=false
200 -D gallium-omx=disabled
203 -D gallium-nine=false
207 extends: .meson-cross
210 VULKAN_DRIVERS: freedreno
211 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,tegra,v3d,vc4"
212 # Disable the tests since we're cross compiling.
215 -D I-love-half-baked-turnips=true
216 -D vulkan-overlay-layer=true
222 BUILDTYPE: "debugoptimized"
224 # NOTE: Building SWR is 2x (yes two) times slower than all the other
225 # gallium drivers combined.
226 # Start this early so that it doesn't limit the total run time.
228 # We also stick the glvnd build here, since we want non-glvnd in
229 # meson-main for actual driver CI.
231 extends: .meson-build
239 -D gallium-vdpau=false
240 -D gallium-xvmc=false
241 -D gallium-omx=disabled
244 -D gallium-nine=false
245 -D gallium-opencl=disabled
246 GALLIUM_DRIVERS: "swr,iris"
250 extends: .meson-build
254 GALLIUM_DRIVERS: "auto"
255 VULKAN_DRIVERS: intel,amd,freedreno
257 CXX: "ccache clang++-8"
260 extends: .scons-build
262 SCONS_TARGET: "swr=1"
263 SCONS_CHECK_COMMAND: "true"
267 extends: .scons-build
269 SCONS_TARGET: platform=windows machine=x86_64
270 SCONS_CHECK_COMMAND: "true"
273 extends: .meson-build
282 -D gallium-vdpau=false
283 -D gallium-xvmc=false
284 -D gallium-omx=disabled
287 -D gallium-nine=false
288 -D gallium-opencl=icd
290 - export GALLIUM_DRIVERS="r600,radeonsi"
291 - .gitlab-ci/meson-build.sh
292 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
293 - export GALLIUM_DRIVERS="i915,r600"
294 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
295 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
297 meson-clover-old-llvm:
307 -D platforms=drm,surfaceless
308 GALLIUM_DRIVERS: "i915,r600"
310 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
311 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
312 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
315 extends: .meson-build
322 -D platforms=x11,wayland,drm
326 -D gallium-vdpau=false
327 -D gallium-xvmc=false
328 -D gallium-omx=disabled
331 -D gallium-nine=false
332 -D gallium-opencl=disabled
333 VULKAN_DRIVERS: intel,amd,freedreno
336 -D vulkan-overlay-layer=true
338 # While the main point of this build is testing the i386 cross build,
339 # we also use this one to test some other options that are exclusive
340 # with meson-main's choices (classic swrast and osmesa)
342 extends: .meson-cross
345 VULKAN_DRIVERS: intel
346 DRI_DRIVERS: "swrast"
347 GALLIUM_DRIVERS: "iris"
349 -D vulkan-overlay-layer=true
353 .meson-mingw32-x86_64:
354 extends: .meson-build
358 GALLIUM_DRIVERS: "swrast"
362 --cross-file=.gitlab-ci/x86_64-w64-mingw32
365 extends: .scons-build
367 SCONS_TARGET: "llvm=1"
368 SCONS_CHECK_COMMAND: "scons llvm=1 check"
370 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check" .gitlab-ci/scons-build.sh
371 - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh
372 - LLVM_VERSION=7 .gitlab-ci/scons-build.sh
373 - LLVM_VERSION=8 .gitlab-ci/scons-build.sh
380 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
381 - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh
382 - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh
385 extends: .use-debian-10
388 GIT_STRATEGY: none # testing doesn't build anything from source
389 DEQP_SKIPS: deqp-default-skips.txt
391 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
393 - tar -xf artifacts/install.tar
394 - ./artifacts/deqp-runner.sh
397 name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
408 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
409 LIBGL_ALWAYS_SOFTWARE: "true"
410 DEQP_RENDERER_MATCH: "llvmpipe"
414 extends: test-llvmpipe-gles2
416 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
417 DEQP_RENDERER_MATCH: "softpipe"
418 GALLIUM_DRIVER: "softpipe"
420 # The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is
421 # 25 minutes. Until we can get its runtime down, just do a partial
422 # (every 10 tests) run.
423 test-softpipe-gles3-limited:
426 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
427 LIBGL_ALWAYS_SOFTWARE: "true"
428 DEQP_RENDERER_MATCH: "softpipe"
429 GALLIUM_DRIVER: "softpipe"
436 image: $DEBIAN_ARM64_IMAGE
439 DEQP_RENDERER_MATCH: "FD630"
440 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
441 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
449 - test-container:arm64
452 extends: arm64_a630_gles2
459 extends: arm64_a630_gles2
465 extends: arm64_a630_gles2
467 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
468 DEQP_SKIPS: deqp-default-skips.txt
469 DEQP_RENDERER_MATCH: "FD307"