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 # The format of the tag is "%Y-%m-%d-${counter}" where ${counter} stays
17 # at "01" unless you have multiple updates on the same day :)
19 UPSTREAM_REPO: mesa/mesa
20 DEBIAN_TAG: "2019-05-01"
21 DEBIAN_VERSION: stretch-slim
22 DEBIAN_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG"
25 - project: 'wayland/ci-templates'
26 ref: c73dae8b84697ef18e2dbbf4fed7386d9652b0cd
27 file: '/templates/debian.yml'
34 # When to automatically run the CI
35 .ci-run-policy: &ci-run-policy
43 - runner_system_failure
49 extends: .debian@container-ifnot-exists
50 stage: containers-build
53 GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
54 DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
70 CCACHE_COMPILERCHECK: "content"
71 # Use ccache transparently, and print stats before/after
73 - export PATH="/usr/lib/ccache:$PATH"
74 - export CCACHE_BASEDIR="$PWD"
75 - export CCACHE_DIR="$PWD/ccache"
76 - ccache --zero-stats || true
77 - ccache --show-stats || true
79 - export CCACHE_DIR="$PWD/ccache"
85 # We need to control the version of llvm-config we're using, so we'll
86 # generate a native file to do so. This requires meson >=0.49
87 - if test -n "$LLVM_VERSION"; then
88 LLVM_CONFIG="llvm-config-${LLVM_VERSION}";
89 echo -e "[binaries]\nllvm-config = '`which $LLVM_CONFIG`'" > native.file;
90 $LLVM_CONFIG --version;
96 --native-file=native.file
99 -D libunwind=${UNWIND}
101 -D dri-drivers=${DRI_DRIVERS:-[]}
103 -D gallium-drivers=${GALLIUM_DRIVERS:-[]}
104 -D vulkan-drivers=${VULKAN_DRIVERS:-[]}
105 -D I-love-half-baked-turnips=true
109 - LC_ALL=C.UTF-8 ninja test
116 - if test -n "$LLVM_VERSION"; then
117 export LLVM_CONFIG="llvm-config-${LLVM_VERSION}";
119 - scons $SCONS_TARGET
120 - eval $SCONS_CHECK_COMMAND
122 # NOTE: Building SWR is 2x (yes two) times slower than all the other
123 # gallium drivers combined.
124 # Start this early so that it doesn't limit the total run time.
126 # We also put softpipe (and therefore gallium nine, which requires
127 # it) here, since softpipe/llvmpipe can't be built alongside classic
130 extends: .meson-build
139 -D gallium-vdpau=false
140 -D gallium-xvmc=false
141 -D gallium-omx=disabled
145 -D gallium-opencl=disabled
147 GALLIUM_DRIVERS: "swr,swrast,iris"
151 extends: .meson-build
155 GALLIUM_DRIVERS: "auto"
156 VULKAN_DRIVERS: intel,amd,freedreno
158 CXX: "ccache clang++-8"
160 - export CCACHE_BASEDIR="$PWD" CCACHE_DIR="$PWD/ccache"
161 - ccache --zero-stats --show-stats || true
162 # clang++ breaks if it picks up the GCC 8 directory without libstdc++.so
163 - apt-get remove -y libgcc-8-dev
166 extends: .meson-build
173 -D platforms=x11,wayland,drm
177 -D gallium-vdpau=false
178 -D gallium-xvmc=false
179 -D gallium-omx=disabled
182 -D gallium-nine=false
183 -D gallium-opencl=disabled
184 VULKAN_DRIVERS: intel,amd,freedreno
188 extends: .meson-build
195 -D platforms=x11,wayland,drm,surfaceless
197 DRI_DRIVERS: "i915,i965,r100,r200,swrast,nouveau"
200 -D gallium-extra-hud=true
201 -D gallium-vdpau=true
203 -D gallium-omx=bellagio
206 -D gallium-nine=false
207 -D gallium-opencl=disabled
208 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,svga,v3d,vc4,virgl,etnaviv,panfrost,lima"
212 extends: .meson-build
222 -D gallium-vdpau=false
223 -D gallium-xvmc=false
224 -D gallium-omx=disabled
227 -D gallium-nine=false
228 -D gallium-opencl=disabled
230 meson-gallium-clover-llvm:
231 extends: .meson-build
240 -D gallium-vdpau=false
241 -D gallium-xvmc=false
242 -D gallium-omx=disabled
245 -D gallium-nine=false
246 -D gallium-opencl=icd
247 GALLIUM_DRIVERS: "r600,radeonsi"
249 meson-gallium-clover-llvm39:
250 extends: meson-gallium-clover-llvm
252 GALLIUM_DRIVERS: "i915,r600"
256 extends: .scons-build
258 SCONS_TARGET: "llvm=0"
259 SCONS_CHECK_COMMAND: "scons llvm=0 check"
262 extends: .scons-build
264 SCONS_TARGET: "llvm=1"
265 SCONS_CHECK_COMMAND: "scons llvm=1 check"
267 # LLVM 3.4 packages were built with an old libstdc++ ABI
268 CXX: "g++ -D_GLIBCXX_USE_CXX11_ABI=0"
271 extends: .scons-build
273 SCONS_TARGET: "swr=1"
274 SCONS_CHECK_COMMAND: "true"
278 extends: .scons-build
280 SCONS_TARGET: platform=windows machine=x86_64
281 SCONS_CHECK_COMMAND: "true"