1 # This is the tag of the docker image used for the build jobs. If the
2 # image doesn't exist yet, the containers-build 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-07-23"
18 DEBIAN_VERSION: stretch-slim
19 DEBIAN_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG"
22 - project: 'wayland/ci-templates'
23 ref: c73dae8b84697ef18e2dbbf4fed7386d9652b0cd
24 file: '/templates/debian.yml'
31 # When to automatically run the CI
32 .ci-run-policy: &ci-run-policy
40 - runner_system_failure
46 extends: .debian@container-ifnot-exists
47 stage: containers-build
50 GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
51 DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
66 - _build/meson-logs/*.txt
71 CCACHE_COMPILERCHECK: "content"
72 # Use ccache transparently, and print stats before/after
74 - export PATH="/usr/lib/ccache:$PATH"
75 - export CCACHE_BASEDIR="$PWD"
76 - export CCACHE_DIR="$PWD/ccache"
77 - ccache --zero-stats || true
78 - ccache --show-stats || true
80 - export CCACHE_DIR="$PWD/ccache"
86 - .gitlab-ci/meson-build.sh
93 - if test -n "$LLVM_VERSION"; then
94 export LLVM_CONFIG="llvm-config-${LLVM_VERSION}";
97 - eval $SCONS_CHECK_COMMAND
99 # NOTE: Building SWR is 2x (yes two) times slower than all the other
100 # gallium drivers combined.
101 # Start this early so that it doesn't limit the total run time.
103 # We also put softpipe (and therefore gallium nine, which requires
104 # it) here, since softpipe/llvmpipe can't be built alongside classic
107 # Putting glvnd here is arbitrary, but we want it in one of the builds
110 extends: .meson-build
118 -D gallium-vdpau=false
119 -D gallium-xvmc=false
120 -D gallium-omx=disabled
124 -D gallium-opencl=disabled
126 GALLIUM_DRIVERS: "swr,swrast,iris"
130 extends: .meson-build
134 GALLIUM_DRIVERS: "auto"
135 VULKAN_DRIVERS: intel,amd,freedreno
137 CXX: "ccache clang++-8"
139 - export CCACHE_BASEDIR="$PWD" CCACHE_DIR="$PWD/ccache"
140 - ccache --zero-stats --show-stats || true
141 # clang++ breaks if it picks up the GCC 8 directory without libstdc++.so
142 - apt-get remove -y libgcc-8-dev
145 extends: .scons-build
147 SCONS_TARGET: "swr=1"
148 SCONS_CHECK_COMMAND: "true"
152 extends: .scons-build
154 SCONS_TARGET: platform=windows machine=x86_64
155 SCONS_CHECK_COMMAND: "true"
158 extends: .meson-build
165 -D platforms=x11,wayland,drm,surfaceless
167 DRI_DRIVERS: "i915,i965,r100,r200,swrast,nouveau"
171 -D gallium-extra-hud=true
172 -D gallium-vdpau=true
174 -D gallium-omx=bellagio
177 -D gallium-nine=false
178 -D gallium-opencl=disabled
179 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,svga,v3d,vc4,virgl,etnaviv,panfrost,lima"
183 MESON_SHADERDB: "true"
186 extends: .meson-build
195 -D gallium-vdpau=false
196 -D gallium-xvmc=false
197 -D gallium-omx=disabled
200 -D gallium-nine=false
201 -D gallium-opencl=icd
203 - export GALLIUM_DRIVERS="r600,radeonsi"
204 - .gitlab-ci/meson-build.sh
205 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
206 - export GALLIUM_DRIVERS="i915,r600"
207 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
208 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
209 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
210 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
213 extends: .meson-build
220 -D platforms=x11,wayland,drm
224 -D gallium-vdpau=false
225 -D gallium-xvmc=false
226 -D gallium-omx=disabled
229 -D gallium-nine=false
230 -D gallium-opencl=disabled
231 VULKAN_DRIVERS: intel,amd,freedreno
234 -D vulkan-overlay-layer=true
237 extends: .meson-build
244 -D platforms=surfaceless
248 -D gallium-vdpau=false
249 -D gallium-xvmc=false
250 -D gallium-omx=disabled
253 -D gallium-nine=false
256 --cross /tmp/cross_file.txt
259 - /usr/share/meson/debcrossgen --arch ${ARCH} -o /tmp/cross_file.txt
260 # Work around a bug in debcrossgen that should be fixed in the next release
261 - sed -i "s|cpu_family = 'i686'|cpu_family = 'x86'|g" /tmp/cross_file.txt
262 - .gitlab-ci/meson-build.sh
265 extends: .meson-cross
268 VULKAN_DRIVERS: freedreno
269 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,tegra,v3d,vc4"
270 # Disable the tests since we're cross compiling.
273 -D I-love-half-baked-turnips=true
274 -D vulkan-overlay-layer=true
277 extends: .meson-cross
280 VULKAN_DRIVERS: freedreno
281 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,tegra,v3d,vc4"
282 # Disable the tests since we're cross compiling.
285 -D I-love-half-baked-turnips=true
286 -D vulkan-overlay-layer=true
289 extends: .meson-cross
292 VULKAN_DRIVERS: intel
293 GALLIUM_DRIVERS: "swrast"
294 # Disable i386 tests, because u_format_tests gets precision
295 # failures in dxtn unpacking
298 -D vulkan-overlay-layer=true
301 extends: .scons-build
303 SCONS_TARGET: "llvm=0"
304 SCONS_CHECK_COMMAND: "scons llvm=0 check"
307 extends: .scons-build
309 SCONS_TARGET: "llvm=1"
310 SCONS_CHECK_COMMAND: "scons llvm=1 check"
312 # LLVM 3.4 packages were built with an old libstdc++ ABI
313 CXX: "g++ -D_GLIBCXX_USE_CXX11_ABI=0"