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 UBUNTU_TAG: "2019-04-02"
21 UBUNTU_VERSION: bionic
22 UBUNTU_IMAGE: "$CI_REGISTRY_IMAGE/ubuntu/$UBUNTU_VERSION:$UBUNTU_TAG"
25 - project: 'wayland/ci-templates'
26 ref: c73dae8b84697ef18e2dbbf4fed7386d9652b0cd
27 file: '/templates/ubuntu.yml'
34 # When to automatically run the CI
35 .ci-run-policy: &ci-run-policy
43 - runner_system_failure
49 extends: .ubuntu@container-ifnot-exists
50 stage: containers-build
53 GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
54 UBUNTU_EXEC: 'bash .gitlab-ci/ubuntu-install.sh'
69 # Use ccache transparently, and print stats before/after
71 - export PATH="/usr/lib/ccache:$PATH"
72 - export CCACHE_BASEDIR="$PWD"
73 - export CCACHE_DIR="$PWD/ccache"
74 - export CCACHE_COMPILERCHECK=content
75 - ccache --zero-stats || true
76 - ccache --show-stats || true
78 - export CCACHE_DIR="$PWD/ccache"
84 # We need to control the version of llvm-config we're using, so we'll
85 # generate a native file to do so. This requires meson >=0.49
86 - if test -n "$LLVM_VERSION"; then
87 LLVM_CONFIG="llvm-config-${LLVM_VERSION}";
88 echo -e "[binaries]\nllvm-config = '`which $LLVM_CONFIG`'" > native.file;
89 $LLVM_CONFIG --version;
95 --native-file=native.file
97 -D libunwind=${UNWIND}
99 -D dri-drivers=${DRI_DRIVERS:-[]}
101 -D gallium-drivers=${GALLIUM_DRIVERS:-[]}
102 -D vulkan-drivers=${VULKAN_DRIVERS:-[]}
103 -D I-love-half-baked-turnips=true
114 - if test -n "$LLVM_VERSION"; then
115 export LLVM_CONFIG="llvm-config-${LLVM_VERSION}";
117 - scons $SCONS_TARGET
118 - eval $SCONS_CHECK_COMMAND
124 LLVM_CONFIG: llvm-config-7
131 --disable-llvm-shared-libs
135 # NOTE: Building SWR is 2x (yes two) times slower than all the other
136 # gallium drivers combined.
137 # Start this early so that it doesn't limit the total run time.
139 extends: .meson-build
148 -D gallium-vdpau=false
149 -D gallium-xvmc=false
150 -D gallium-omx=disabled
153 -D gallium-nine=false
154 -D gallium-opencl=disabled
155 GALLIUM_DRIVERS: "swr"
159 extends: .meson-build
163 GALLIUM_DRIVERS: "auto"
165 CXX: "ccache clang++-7"
168 extends: .meson-build
175 -D platforms=x11,wayland,drm
179 -D gallium-vdpau=false
180 -D gallium-xvmc=false
181 -D gallium-omx=disabled
184 -D gallium-nine=false
185 -D gallium-opencl=disabled
186 VULKAN_DRIVERS: intel,amd,freedreno
189 meson-loader-classic-dri:
190 extends: .meson-build
197 -D platforms=x11,wayland,drm,surfaceless
199 DRI_DRIVERS: "i915,i965,r100,r200,swrast,nouveau"
202 -D gallium-vdpau=false
203 -D gallium-xvmc=false
204 -D gallium-omx=disabled
207 -D gallium-nine=false
208 -D gallium-opencl=disabled
211 extends: .meson-build
221 -D gallium-vdpau=false
222 -D gallium-xvmc=false
223 -D gallium-omx=disabled
226 -D gallium-nine=false
227 -D gallium-opencl=disabled
229 meson-gallium-radeonsi:
230 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: "radeonsi"
249 meson-gallium-drivers-other:
250 extends: .meson-build
259 -D gallium-vdpau=false
260 -D gallium-xvmc=false
261 -D gallium-omx=disabled
264 -D gallium-nine=false
265 -D gallium-opencl=disabled
266 GALLIUM_DRIVERS: "i915,iris,nouveau,kmsro,r300,r600,freedreno,svga,swrast,v3d,vc4,virgl,etnaviv,panfrost"
269 meson-gallium-clover-llvm:
270 extends: .meson-build
279 -D gallium-vdpau=false
280 -D gallium-xvmc=false
281 -D gallium-omx=disabled
284 -D gallium-nine=false
285 -D gallium-opencl=icd
286 GALLIUM_DRIVERS: "r600,radeonsi"
288 meson-gallium-clover-llvm39:
289 extends: meson-gallium-clover-llvm
291 GALLIUM_DRIVERS: "r600"
294 meson-gallium-st-other:
295 extends: .meson-build
304 -D gallium-vdpau=true
306 -D gallium-omx=bellagio
310 -D gallium-opencl=disabled
312 GALLIUM_DRIVERS: "nouveau,swrast"
316 extends: .scons-build
318 SCONS_TARGET: "llvm=0"
319 SCONS_CHECK_COMMAND: "scons llvm=0 check"
322 extends: .scons-build
324 SCONS_TARGET: "llvm=1"
325 SCONS_CHECK_COMMAND: "scons llvm=1 check"
329 extends: .scons-build
331 SCONS_TARGET: "swr=1"
332 SCONS_CHECK_COMMAND: "true"