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
120 # NOTE: Building SWR is 2x (yes two) times slower than all the other
121 # gallium drivers combined.
122 # Start this early so that it doesn't limit the total run time.
124 extends: .meson-build
133 -D gallium-vdpau=false
134 -D gallium-xvmc=false
135 -D gallium-omx=disabled
138 -D gallium-nine=false
139 -D gallium-opencl=disabled
140 GALLIUM_DRIVERS: "swr"
144 extends: .meson-build
148 GALLIUM_DRIVERS: "auto"
150 CXX: "ccache clang++-7"
153 extends: .meson-build
160 -D platforms=x11,wayland,drm
164 -D gallium-vdpau=false
165 -D gallium-xvmc=false
166 -D gallium-omx=disabled
169 -D gallium-nine=false
170 -D gallium-opencl=disabled
171 VULKAN_DRIVERS: intel,amd,freedreno
174 meson-loader-classic-dri:
175 extends: .meson-build
182 -D platforms=x11,wayland,drm,surfaceless
184 DRI_DRIVERS: "i915,i965,r100,r200,swrast,nouveau"
187 -D gallium-vdpau=false
188 -D gallium-xvmc=false
189 -D gallium-omx=disabled
192 -D gallium-nine=false
193 -D gallium-opencl=disabled
196 extends: .meson-build
206 -D gallium-vdpau=false
207 -D gallium-xvmc=false
208 -D gallium-omx=disabled
211 -D gallium-nine=false
212 -D gallium-opencl=disabled
214 meson-gallium-radeonsi:
215 extends: .meson-build
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 GALLIUM_DRIVERS: "radeonsi"
234 meson-gallium-drivers-other:
235 extends: .meson-build
244 -D gallium-vdpau=false
245 -D gallium-xvmc=false
246 -D gallium-omx=disabled
249 -D gallium-nine=false
250 -D gallium-opencl=disabled
251 GALLIUM_DRIVERS: "i915,iris,nouveau,kmsro,r300,r600,freedreno,svga,swrast,v3d,vc4,virgl,etnaviv,panfrost,lima"
254 meson-gallium-clover-llvm:
255 extends: .meson-build
264 -D gallium-vdpau=false
265 -D gallium-xvmc=false
266 -D gallium-omx=disabled
269 -D gallium-nine=false
270 -D gallium-opencl=icd
271 GALLIUM_DRIVERS: "r600,radeonsi"
273 meson-gallium-clover-llvm39:
274 extends: meson-gallium-clover-llvm
276 GALLIUM_DRIVERS: "r600"
279 meson-gallium-st-other:
280 extends: .meson-build
289 -D gallium-extra-hud=true
290 -D gallium-vdpau=true
292 -D gallium-omx=bellagio
296 -D gallium-opencl=disabled
298 GALLIUM_DRIVERS: "nouveau,swrast"
302 extends: .scons-build
304 SCONS_TARGET: "llvm=0"
305 SCONS_CHECK_COMMAND: "scons llvm=0 check"
308 extends: .scons-build
310 SCONS_TARGET: "llvm=1"
311 SCONS_CHECK_COMMAND: "scons llvm=1 check"
315 extends: .scons-build
317 SCONS_TARGET: "swr=1"
318 SCONS_CHECK_COMMAND: "true"