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-05-08"
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'
67 CCACHE_COMPILERCHECK: "content"
68 # Use ccache transparently, and print stats before/after
70 - export PATH="/usr/lib/ccache:$PATH"
71 - export CCACHE_BASEDIR="$PWD"
72 - export CCACHE_DIR="$PWD/ccache"
73 - ccache --zero-stats || true
74 - ccache --show-stats || true
76 - export CCACHE_DIR="$PWD/ccache"
82 - .gitlab-ci/meson-build.sh
89 - if test -n "$LLVM_VERSION"; then
90 export LLVM_CONFIG="llvm-config-${LLVM_VERSION}";
93 - eval $SCONS_CHECK_COMMAND
95 # NOTE: Building SWR is 2x (yes two) times slower than all the other
96 # gallium drivers combined.
97 # Start this early so that it doesn't limit the total run time.
99 # We also put softpipe (and therefore gallium nine, which requires
100 # it) here, since softpipe/llvmpipe can't be built alongside classic
103 # Putting glvnd here is arbitrary, but we want it in one of the builds
106 extends: .meson-build
114 -D gallium-vdpau=false
115 -D gallium-xvmc=false
116 -D gallium-omx=disabled
120 -D gallium-opencl=disabled
122 GALLIUM_DRIVERS: "swr,swrast,iris"
126 extends: .meson-build
130 GALLIUM_DRIVERS: "auto"
131 VULKAN_DRIVERS: intel,amd,freedreno
133 CXX: "ccache clang++-8"
135 - export CCACHE_BASEDIR="$PWD" CCACHE_DIR="$PWD/ccache"
136 - ccache --zero-stats --show-stats || true
137 # clang++ breaks if it picks up the GCC 8 directory without libstdc++.so
138 - apt-get remove -y libgcc-8-dev
141 extends: .scons-build
143 SCONS_TARGET: "swr=1"
144 SCONS_CHECK_COMMAND: "true"
148 extends: .scons-build
150 SCONS_TARGET: platform=windows machine=x86_64
151 SCONS_CHECK_COMMAND: "true"
154 extends: .meson-build
161 -D platforms=x11,wayland,drm,surfaceless
163 DRI_DRIVERS: "i915,i965,r100,r200,swrast,nouveau"
166 -D gallium-extra-hud=true
167 -D gallium-vdpau=true
169 -D gallium-omx=bellagio
172 -D gallium-nine=false
173 -D gallium-opencl=disabled
174 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,svga,v3d,vc4,virgl,etnaviv,panfrost,lima"
180 extends: .meson-build
189 -D gallium-vdpau=false
190 -D gallium-xvmc=false
191 -D gallium-omx=disabled
194 -D gallium-nine=false
195 -D gallium-opencl=icd
197 - export GALLIUM_DRIVERS="r600,radeonsi"
198 - .gitlab-ci/meson-build.sh
199 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
200 - export GALLIUM_DRIVERS="i915,r600"
201 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
202 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
203 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
204 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
207 extends: .meson-build
214 -D platforms=x11,wayland,drm
218 -D gallium-vdpau=false
219 -D gallium-xvmc=false
220 -D gallium-omx=disabled
223 -D gallium-nine=false
224 -D gallium-opencl=disabled
225 VULKAN_DRIVERS: intel,amd,freedreno
228 -D vulkan-overlay-layer=true
231 extends: .scons-build
233 SCONS_TARGET: "llvm=0"
234 SCONS_CHECK_COMMAND: "scons llvm=0 check"
237 extends: .scons-build
239 SCONS_TARGET: "llvm=1"
240 SCONS_CHECK_COMMAND: "scons llvm=1 check"
242 # LLVM 3.4 packages were built with an old libstdc++ ABI
243 CXX: "g++ -D_GLIBCXX_USE_CXX11_ABI=0"