Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 1 | # This is the tag of the docker image used for the build jobs. If the |
Eric Engestrom | a0f8a07 | 2019-09-11 18:51:46 +0100 | [diff] [blame] | 2 | # image doesn't exist yet, the containers stage generates it. |
Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 3 | # |
| 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. |
| 10 | # |
| 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. |
Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 15 | variables: |
Benjamin Tissoires | 7f8a9a1 | 2019-04-02 09:24:00 +0200 | [diff] [blame] | 16 | UPSTREAM_REPO: mesa/mesa |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 17 | DEBIAN_TAG: "2019-10-22" |
| 18 | DEBIAN_ARM64_TAG: "arm64v8-2019-10-22" |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 19 | STRETCH_TAG: "2019-09-18" |
| 20 | DEBIAN_VERSION: buster-slim |
| 21 | STRETCH_VERSION: stretch-slim |
Michel Dänzer | d00b1c4 | 2019-04-02 16:56:54 +0200 | [diff] [blame] | 22 | DEBIAN_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG" |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 23 | DEBIAN_ARM64_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_ARM64_TAG" |
| 24 | STRETCH_IMAGE: "$CI_REGISTRY_IMAGE/debian/$STRETCH_VERSION:$STRETCH_TAG" |
Benjamin Tissoires | 7f8a9a1 | 2019-04-02 09:24:00 +0200 | [diff] [blame] | 25 | |
| 26 | include: |
| 27 | - project: 'wayland/ci-templates' |
Michel Dänzer | 2259b45 | 2019-09-06 17:01:50 +0200 | [diff] [blame] | 28 | ref: 1f7f57c64ff4ebbf7292e3b7a13600518b8cb24c |
Michel Dänzer | d00b1c4 | 2019-04-02 16:56:54 +0200 | [diff] [blame] | 29 | file: '/templates/debian.yml' |
Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 30 | |
Tomeu Vizoso | 7b01f72 | 2019-09-18 16:03:36 +0200 | [diff] [blame] | 31 | include: |
Dylan Baker | 19851c9 | 2019-10-23 14:36:19 -0700 | [diff] [blame^] | 32 | - local: '.gitlab-ci/lava-gitlab-ci.yml' |
Tomeu Vizoso | 7b01f72 | 2019-09-18 16:03:36 +0200 | [diff] [blame] | 33 | |
Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 34 | stages: |
Eric Engestrom | 81b98e9 | 2019-10-14 23:04:14 +0100 | [diff] [blame] | 35 | - container |
Eric Engestrom | a0f8a07 | 2019-09-11 18:51:46 +0100 | [diff] [blame] | 36 | - build |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 37 | - test |
Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 38 | |
| 39 | |
Eric Engestrom | 7f5d9c2 | 2019-02-22 15:52:08 +0000 | [diff] [blame] | 40 | # When to automatically run the CI |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 41 | .ci-run-policy: |
Eric Engestrom | 7f5d9c2 | 2019-02-22 15:52:08 +0000 | [diff] [blame] | 42 | only: |
Michel Dänzer | b48e64f | 2019-04-10 10:33:13 +0200 | [diff] [blame] | 43 | - branches@mesa/mesa |
Eric Engestrom | 7f5d9c2 | 2019-02-22 15:52:08 +0000 | [diff] [blame] | 44 | - merge_requests |
| 45 | - /^ci([-/].*)?$/ |
Michel Dänzer | 6140ed3 | 2019-03-26 18:39:41 +0100 | [diff] [blame] | 46 | retry: |
| 47 | max: 2 |
| 48 | when: |
| 49 | - runner_system_failure |
Eric Engestrom | 7f5d9c2 | 2019-02-22 15:52:08 +0000 | [diff] [blame] | 50 | |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 51 | .ci-deqp-artifacts: |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 52 | artifacts: |
| 53 | when: always |
| 54 | untracked: false |
| 55 | paths: |
| 56 | # Watch out! Artifacts are relative to the build dir. |
| 57 | # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521 |
| 58 | - artifacts |
Eric Engestrom | 7f5d9c2 | 2019-02-22 15:52:08 +0000 | [diff] [blame] | 59 | |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 60 | # Build the normal CI native and cross-build docker images. |
| 61 | |
Eric Engestrom | 81b98e9 | 2019-10-14 23:04:14 +0100 | [diff] [blame] | 62 | .container: |
| 63 | stage: container |
| 64 | extends: |
| 65 | - .ci-run-policy |
| 66 | variables: |
| 67 | # no need to pull the whole repo to build the container image |
| 68 | GIT_STRATEGY: none |
| 69 | |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 70 | debian-10:amd64: |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 71 | extends: |
| 72 | - .debian@container-ifnot-exists |
Eric Engestrom | 81b98e9 | 2019-10-14 23:04:14 +0100 | [diff] [blame] | 73 | - .container |
Eric Engestrom | 329f5cd | 2019-01-20 11:21:45 +0000 | [diff] [blame] | 74 | variables: |
Michel Dänzer | d00b1c4 | 2019-04-02 16:56:54 +0200 | [diff] [blame] | 75 | DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh' |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 76 | |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 77 | .use-debian-10:amd64: |
Michel Dänzer | eb86cba | 2019-10-10 15:27:17 +0200 | [diff] [blame] | 78 | image: $DEBIAN_IMAGE |
| 79 | needs: |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 80 | - debian-10:amd64 |
Michel Dänzer | eb86cba | 2019-10-10 15:27:17 +0200 | [diff] [blame] | 81 | |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 82 | debian-9:amd64: |
| 83 | extends: debian-10:amd64 |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 84 | variables: |
| 85 | DEBIAN_TAG: $STRETCH_TAG |
| 86 | DEBIAN_VERSION: $STRETCH_VERSION |
| 87 | DEBIAN_IMAGE: $STRETCH_IMAGE |
| 88 | DEBIAN_EXEC: 'bash .gitlab-ci/debian-stretch-install.sh' |
| 89 | |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 90 | .use-debian-9:amd64: |
Michel Dänzer | 88319f2 | 2019-09-18 16:17:01 +0200 | [diff] [blame] | 91 | image: $STRETCH_IMAGE |
| 92 | needs: |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 93 | - debian-9:amd64 |
Michel Dänzer | 88319f2 | 2019-09-18 16:17:01 +0200 | [diff] [blame] | 94 | |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 95 | debian-10:arm64: |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 96 | extends: |
| 97 | - .debian@container-ifnot-exists@arm64v8 |
Eric Engestrom | 81b98e9 | 2019-10-14 23:04:14 +0100 | [diff] [blame] | 98 | - .container |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 99 | variables: |
| 100 | DEBIAN_TAG: "$DEBIAN_ARM64_TAG" |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 101 | DEBIAN_EXEC: 'bash .gitlab-ci/debian-arm64-install.sh' |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 102 | |
Eric Engestrom | 81b98e9 | 2019-10-14 23:04:14 +0100 | [diff] [blame] | 103 | |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 104 | # BUILD |
| 105 | |
Dylan Baker | 06e4647 | 2019-10-23 14:21:31 -0700 | [diff] [blame] | 106 | # Shared between windows and Linux |
| 107 | .build-common: |
Eric Engestrom | aba78c2 | 2019-10-14 23:52:58 +0100 | [diff] [blame] | 108 | extends: .ci-run-policy |
Eric Engestrom | a0f8a07 | 2019-09-11 18:51:46 +0100 | [diff] [blame] | 109 | stage: build |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 110 | artifacts: |
Eric Anholt | dd3d0b2 | 2019-07-24 09:27:48 -0700 | [diff] [blame] | 111 | when: always |
| 112 | paths: |
| 113 | - _build/meson-logs/*.txt |
| 114 | # scons: |
Michel Dänzer | 5229f27 | 2019-07-26 12:20:41 +0200 | [diff] [blame] | 115 | - build/*/config.log |
Eric Anholt | f60defa | 2019-04-10 15:59:12 -0700 | [diff] [blame] | 116 | - shader-db |
Dylan Baker | 06e4647 | 2019-10-23 14:21:31 -0700 | [diff] [blame] | 117 | |
| 118 | # Just Linux |
| 119 | .build-linux: |
| 120 | extends: .build-common |
| 121 | cache: |
| 122 | key: ${CI_JOB_NAME} |
| 123 | paths: |
| 124 | - ccache |
Michel Dänzer | e9de19f | 2019-04-04 18:01:27 +0200 | [diff] [blame] | 125 | variables: |
| 126 | CCACHE_COMPILERCHECK: "content" |
Eric Engestrom | 23b485c | 2019-02-12 16:59:27 +0000 | [diff] [blame] | 127 | # Use ccache transparently, and print stats before/after |
| 128 | before_script: |
| 129 | - export PATH="/usr/lib/ccache:$PATH" |
| 130 | - export CCACHE_BASEDIR="$PWD" |
| 131 | - export CCACHE_DIR="$PWD/ccache" |
Michel Dänzer | 4712fdf | 2019-10-01 16:00:16 +0200 | [diff] [blame] | 132 | - ccache --max-size=1500M |
Eric Engestrom | 23b485c | 2019-02-12 16:59:27 +0000 | [diff] [blame] | 133 | - ccache --zero-stats || true |
| 134 | - ccache --show-stats || true |
| 135 | after_script: |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 136 | # In case the install dir is being saved as artifacts, tar it up |
| 137 | # so that symlinks and hardlinks aren't each packed separately in |
| 138 | # the zip file. |
| 139 | - if [ -d install ]; then |
| 140 | tar -cf artifacts/install.tar install; |
| 141 | fi |
Eric Engestrom | 23b485c | 2019-02-12 16:59:27 +0000 | [diff] [blame] | 142 | - export CCACHE_DIR="$PWD/ccache" |
| 143 | - ccache --show-stats |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 144 | |
Dylan Baker | 19851c9 | 2019-10-23 14:36:19 -0700 | [diff] [blame^] | 145 | .build-windows: |
| 146 | extends: .build-common |
| 147 | tags: |
| 148 | - mesa-windows |
| 149 | cache: |
| 150 | key: ${CI_JOB_NAME} |
| 151 | paths: |
| 152 | - subprojects/packagecache |
| 153 | |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 154 | .meson-build: |
Eric Engestrom | aba78c2 | 2019-10-14 23:52:58 +0100 | [diff] [blame] | 155 | extends: |
Dylan Baker | 06e4647 | 2019-10-23 14:21:31 -0700 | [diff] [blame] | 156 | - .build-linux |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 157 | - .use-debian-10:amd64 |
Eric Engestrom | 23b485c | 2019-02-12 16:59:27 +0000 | [diff] [blame] | 158 | script: |
Michel Dänzer | cc2b3a9 | 2019-05-03 10:49:43 +0200 | [diff] [blame] | 159 | - .gitlab-ci/meson-build.sh |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 160 | |
Eric Engestrom | 06b245b | 2019-01-23 15:46:10 +0000 | [diff] [blame] | 161 | .scons-build: |
Eric Engestrom | aba78c2 | 2019-10-14 23:52:58 +0100 | [diff] [blame] | 162 | extends: |
Dylan Baker | 06e4647 | 2019-10-23 14:21:31 -0700 | [diff] [blame] | 163 | - .build-linux |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 164 | - .use-debian-10:amd64 |
Eric Engestrom | 06b245b | 2019-01-23 15:46:10 +0000 | [diff] [blame] | 165 | variables: |
| 166 | SCONSFLAGS: "-j4" |
| 167 | script: |
Michel Dänzer | 0374aac | 2019-09-12 11:34:43 +0200 | [diff] [blame] | 168 | - .gitlab-ci/scons-build.sh |
Eric Engestrom | 06b245b | 2019-01-23 15:46:10 +0000 | [diff] [blame] | 169 | |
Michel Dänzer | 42f8d5a | 2019-08-28 12:01:02 +0200 | [diff] [blame] | 170 | meson-main: |
Michel Dänzer | e426f40 | 2019-09-06 17:35:52 +0200 | [diff] [blame] | 171 | extends: |
| 172 | - .meson-build |
| 173 | - .ci-deqp-artifacts |
Michel Dänzer | 42f8d5a | 2019-08-28 12:01:02 +0200 | [diff] [blame] | 174 | variables: |
| 175 | UNWIND: "true" |
| 176 | DRI_LOADERS: > |
| 177 | -D glx=dri |
| 178 | -D gbm=true |
| 179 | -D egl=true |
| 180 | -D platforms=x11,wayland,drm,surfaceless |
| 181 | DRI_DRIVERS: "i915,i965,r100,r200,nouveau" |
| 182 | GALLIUM_ST: > |
| 183 | -D dri3=true |
| 184 | -D gallium-extra-hud=true |
| 185 | -D gallium-vdpau=true |
| 186 | -D gallium-xvmc=true |
| 187 | -D gallium-omx=bellagio |
| 188 | -D gallium-va=true |
| 189 | -D gallium-xa=true |
| 190 | -D gallium-nine=true |
| 191 | -D gallium-opencl=disabled |
| 192 | GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima" |
| 193 | LLVM_VERSION: "7" |
| 194 | EXTRA_OPTION: > |
| 195 | -D osmesa=gallium |
| 196 | -D tools=all |
| 197 | MESON_SHADERDB: "true" |
| 198 | BUILDTYPE: "debugoptimized" |
Michel Dänzer | 42f8d5a | 2019-08-28 12:01:02 +0200 | [diff] [blame] | 199 | |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 200 | .meson-cross: |
| 201 | extends: |
| 202 | - .meson-build |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 203 | variables: |
| 204 | UNWIND: "false" |
| 205 | DRI_LOADERS: > |
| 206 | -D glx=disabled |
| 207 | -D gbm=false |
| 208 | -D egl=true |
| 209 | -D platforms=surfaceless |
| 210 | -D osmesa=none |
| 211 | GALLIUM_ST: > |
| 212 | -D dri3=false |
| 213 | -D gallium-vdpau=false |
| 214 | -D gallium-xvmc=false |
| 215 | -D gallium-omx=disabled |
| 216 | -D gallium-va=false |
| 217 | -D gallium-xa=false |
| 218 | -D gallium-nine=false |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 219 | |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 220 | .meson-arm: |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 221 | extends: .meson-cross |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 222 | image: $DEBIAN_ARM64_IMAGE |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 223 | variables: |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 224 | VULKAN_DRIVERS: freedreno |
Michel Dänzer | 793f6b3 | 2019-10-08 19:48:41 +0200 | [diff] [blame] | 225 | GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4" |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 226 | EXTRA_OPTION: > |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 227 | -D I-love-half-baked-turnips=true |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 228 | needs: |
| 229 | - debian-10:arm64 |
| 230 | tags: |
| 231 | - aarch64 |
| 232 | |
| 233 | meson-armhf: |
| 234 | extends: .meson-arm |
| 235 | variables: |
| 236 | CROSS: armhf |
Michel Dänzer | 793f6b3 | 2019-10-08 19:48:41 +0200 | [diff] [blame] | 237 | LLVM_VERSION: "7" |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 238 | |
| 239 | meson-arm64: |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 240 | extends: |
| 241 | - .meson-arm |
| 242 | - .ci-deqp-artifacts |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 243 | variables: |
Michel Dänzer | e536446 | 2019-09-13 11:59:43 +0200 | [diff] [blame] | 244 | BUILDTYPE: "debugoptimized" |
| 245 | |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 246 | # NOTE: Building SWR is 2x (yes two) times slower than all the other |
| 247 | # gallium drivers combined. |
| 248 | # Start this early so that it doesn't limit the total run time. |
Eric Engestrom | 41407c6 | 2019-03-08 16:33:07 +0000 | [diff] [blame] | 249 | # |
Eric Anholt | 030aa6e | 2019-08-07 14:05:51 -0700 | [diff] [blame] | 250 | # We also stick the glvnd build here, since we want non-glvnd in |
| 251 | # meson-main for actual driver CI. |
Eric Engestrom | 1291c68 | 2019-04-16 18:06:53 +0200 | [diff] [blame] | 252 | meson-swr-glvnd: |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 253 | extends: .meson-build |
| 254 | variables: |
| 255 | UNWIND: "true" |
| 256 | DRI_LOADERS: > |
Eric Engestrom | 1291c68 | 2019-04-16 18:06:53 +0200 | [diff] [blame] | 257 | -D glvnd=true |
| 258 | -D egl=true |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 259 | GALLIUM_ST: > |
Eric Engestrom | 41407c6 | 2019-03-08 16:33:07 +0000 | [diff] [blame] | 260 | -D dri3=true |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 261 | -D gallium-vdpau=false |
| 262 | -D gallium-xvmc=false |
| 263 | -D gallium-omx=disabled |
| 264 | -D gallium-va=false |
| 265 | -D gallium-xa=false |
Eric Anholt | 030aa6e | 2019-08-07 14:05:51 -0700 | [diff] [blame] | 266 | -D gallium-nine=false |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 267 | -D gallium-opencl=disabled |
Eric Anholt | 030aa6e | 2019-08-07 14:05:51 -0700 | [diff] [blame] | 268 | GALLIUM_DRIVERS: "swr,iris" |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 269 | LLVM_VERSION: "6.0" |
| 270 | |
| 271 | meson-clang: |
| 272 | extends: .meson-build |
| 273 | variables: |
| 274 | UNWIND: "true" |
| 275 | DRI_DRIVERS: "auto" |
| 276 | GALLIUM_DRIVERS: "auto" |
Eric Engestrom | 47f419d | 2019-05-01 12:09:26 +0100 | [diff] [blame] | 277 | VULKAN_DRIVERS: intel,amd,freedreno |
Michel Dänzer | 3fca2b7 | 2019-04-05 10:36:29 +0200 | [diff] [blame] | 278 | CC: "ccache clang-8" |
| 279 | CXX: "ccache clang++-8" |
Michel Dänzer | a2cce70 | 2019-03-20 15:58:31 +0100 | [diff] [blame] | 280 | |
Dylan Baker | 19851c9 | 2019-10-23 14:36:19 -0700 | [diff] [blame^] | 281 | meson-windows: |
| 282 | extends: |
| 283 | - .build-windows |
| 284 | before_script: |
| 285 | - $ENV:ARCH = "x86" |
| 286 | - $ENV:VERSION = "2019\Community" |
| 287 | script: |
| 288 | - cmd /C .gitlab-ci\meson-build.bat |
| 289 | |
Michel Dänzer | 82b3009 | 2019-05-03 18:19:25 +0200 | [diff] [blame] | 290 | scons-swr: |
| 291 | extends: .scons-build |
Eric Engestrom | 46d23c0 | 2019-01-20 11:26:53 +0000 | [diff] [blame] | 292 | variables: |
Michel Dänzer | 82b3009 | 2019-05-03 18:19:25 +0200 | [diff] [blame] | 293 | SCONS_TARGET: "swr=1" |
| 294 | SCONS_CHECK_COMMAND: "true" |
| 295 | LLVM_VERSION: "6.0" |
| 296 | |
| 297 | scons-win64: |
| 298 | extends: .scons-build |
| 299 | variables: |
| 300 | SCONS_TARGET: platform=windows machine=x86_64 |
| 301 | SCONS_CHECK_COMMAND: "true" |
Eric Engestrom | 89a7467 | 2019-01-21 09:42:37 +0000 | [diff] [blame] | 302 | |
Michel Dänzer | 6897715 | 2019-05-03 10:58:48 +0200 | [diff] [blame] | 303 | meson-clover: |
Eric Engestrom | b5a70af | 2019-01-28 18:05:22 +0000 | [diff] [blame] | 304 | extends: .meson-build |
| 305 | variables: |
| 306 | UNWIND: "true" |
| 307 | DRI_LOADERS: > |
| 308 | -D glx=disabled |
| 309 | -D egl=false |
| 310 | -D gbm=false |
| 311 | GALLIUM_ST: > |
| 312 | -D dri3=false |
| 313 | -D gallium-vdpau=false |
| 314 | -D gallium-xvmc=false |
| 315 | -D gallium-omx=disabled |
| 316 | -D gallium-va=false |
| 317 | -D gallium-xa=false |
| 318 | -D gallium-nine=false |
| 319 | -D gallium-opencl=icd |
Michel Dänzer | 6897715 | 2019-05-03 10:58:48 +0200 | [diff] [blame] | 320 | script: |
| 321 | - export GALLIUM_DRIVERS="r600,radeonsi" |
| 322 | - .gitlab-ci/meson-build.sh |
Samuel Pitoiset | 7d1c091 | 2019-08-21 11:45:25 +0200 | [diff] [blame] | 323 | - LLVM_VERSION=8 .gitlab-ci/meson-build.sh |
Michel Dänzer | 6897715 | 2019-05-03 10:58:48 +0200 | [diff] [blame] | 324 | - export GALLIUM_DRIVERS="i915,r600" |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 325 | - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh |
| 326 | - LLVM_VERSION=7 .gitlab-ci/meson-build.sh |
| 327 | |
| 328 | meson-clover-old-llvm: |
Michel Dänzer | 88319f2 | 2019-09-18 16:17:01 +0200 | [diff] [blame] | 329 | extends: |
| 330 | - meson-clover |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 331 | - .use-debian-9:amd64 |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 332 | variables: |
| 333 | UNWIND: "false" |
| 334 | DRI_LOADERS: > |
| 335 | -D glx=disabled |
| 336 | -D egl=false |
| 337 | -D gbm=false |
| 338 | -D platforms=drm,surfaceless |
| 339 | GALLIUM_DRIVERS: "i915,r600" |
| 340 | script: |
Michel Dänzer | 6897715 | 2019-05-03 10:58:48 +0200 | [diff] [blame] | 341 | - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh |
| 342 | - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh |
| 343 | - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh |
Eric Engestrom | 8dab707 | 2019-01-28 18:09:24 +0000 | [diff] [blame] | 344 | |
Michel Dänzer | 82b3009 | 2019-05-03 18:19:25 +0200 | [diff] [blame] | 345 | meson-vulkan: |
| 346 | extends: .meson-build |
| 347 | variables: |
| 348 | UNWIND: "false" |
| 349 | DRI_LOADERS: > |
| 350 | -D glx=disabled |
| 351 | -D gbm=false |
| 352 | -D egl=false |
| 353 | -D platforms=x11,wayland,drm |
| 354 | -D osmesa=none |
| 355 | GALLIUM_ST: > |
| 356 | -D dri3=true |
| 357 | -D gallium-vdpau=false |
| 358 | -D gallium-xvmc=false |
| 359 | -D gallium-omx=disabled |
| 360 | -D gallium-va=false |
| 361 | -D gallium-xa=false |
| 362 | -D gallium-nine=false |
| 363 | -D gallium-opencl=disabled |
Michel Dänzer | 75cc8c0 | 2019-09-25 12:56:58 +0200 | [diff] [blame] | 364 | -D b_sanitize=undefined |
| 365 | -D c_args=-fno-sanitize-recover=all |
| 366 | -D cpp_args=-fno-sanitize-recover=all |
| 367 | UBSAN_OPTIONS: "print_stacktrace=1" |
Michel Dänzer | 82b3009 | 2019-05-03 18:19:25 +0200 | [diff] [blame] | 368 | VULKAN_DRIVERS: intel,amd,freedreno |
Samuel Pitoiset | 7d1c091 | 2019-08-21 11:45:25 +0200 | [diff] [blame] | 369 | LLVM_VERSION: "8" |
Eric Engestrom | 5f8d29a | 2019-05-08 18:17:23 +0200 | [diff] [blame] | 370 | EXTRA_OPTION: > |
| 371 | -D vulkan-overlay-layer=true |
Michel Dänzer | 82b3009 | 2019-05-03 18:19:25 +0200 | [diff] [blame] | 372 | |
Eric Anholt | 030aa6e | 2019-08-07 14:05:51 -0700 | [diff] [blame] | 373 | # While the main point of this build is testing the i386 cross build, |
| 374 | # we also use this one to test some other options that are exclusive |
| 375 | # with meson-main's choices (classic swrast and osmesa) |
Eric Anholt | 11aa32a | 2019-07-11 12:58:28 -0700 | [diff] [blame] | 376 | meson-i386: |
| 377 | extends: .meson-cross |
| 378 | variables: |
Eric Engestrom | 1c82fa0 | 2019-08-09 23:46:50 +0100 | [diff] [blame] | 379 | CROSS: i386 |
Eric Anholt | 11aa32a | 2019-07-11 12:58:28 -0700 | [diff] [blame] | 380 | VULKAN_DRIVERS: intel |
Eric Anholt | 030aa6e | 2019-08-07 14:05:51 -0700 | [diff] [blame] | 381 | DRI_DRIVERS: "swrast" |
| 382 | GALLIUM_DRIVERS: "iris" |
Eric Anholt | 11aa32a | 2019-07-11 12:58:28 -0700 | [diff] [blame] | 383 | EXTRA_OPTION: > |
Eric Anholt | 11aa32a | 2019-07-11 12:58:28 -0700 | [diff] [blame] | 384 | -D vulkan-overlay-layer=true |
Eric Anholt | 030aa6e | 2019-08-07 14:05:51 -0700 | [diff] [blame] | 385 | -D llvm=false |
| 386 | -D osmesa=classic |
Eric Anholt | 11aa32a | 2019-07-11 12:58:28 -0700 | [diff] [blame] | 387 | |
Dylan Baker | 449f831 | 2019-10-11 09:04:14 -0700 | [diff] [blame] | 388 | meson-mingw32-x86_64: |
Dylan Baker | d905d9b | 2019-09-19 10:21:51 -0700 | [diff] [blame] | 389 | extends: .meson-build |
| 390 | variables: |
| 391 | UNWIND: "false" |
| 392 | DRI_DRIVERS: "" |
| 393 | GALLIUM_DRIVERS: "swrast" |
| 394 | EXTRA_OPTION: > |
| 395 | -Dllvm=false |
| 396 | -Dosmesa=gallium |
| 397 | --cross-file=.gitlab-ci/x86_64-w64-mingw32 |
| 398 | |
Michel Dänzer | 88e5796 | 2019-09-12 11:45:13 +0200 | [diff] [blame] | 399 | scons: |
Eric Engestrom | d4c6d4d | 2019-01-28 16:30:36 +0000 | [diff] [blame] | 400 | extends: .scons-build |
| 401 | variables: |
| 402 | SCONS_TARGET: "llvm=1" |
Dylan Baker | 54053bc | 2019-10-21 09:29:23 -0700 | [diff] [blame] | 403 | SCONS_CHECK_COMMAND: "scons llvm=1 force_scons=1 check" |
Michel Dänzer | baa5024 | 2019-09-12 11:38:06 +0200 | [diff] [blame] | 404 | script: |
Dylan Baker | 54053bc | 2019-10-21 09:29:23 -0700 | [diff] [blame] | 405 | - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh |
Michel Dänzer | baa5024 | 2019-09-12 11:38:06 +0200 | [diff] [blame] | 406 | - LLVM_VERSION=6.0 .gitlab-ci/scons-build.sh |
| 407 | - LLVM_VERSION=7 .gitlab-ci/scons-build.sh |
| 408 | - LLVM_VERSION=8 .gitlab-ci/scons-build.sh |
Michel Dänzer | 8a19992 | 2019-09-06 17:04:47 +0200 | [diff] [blame] | 409 | |
| 410 | scons-old-llvm: |
Michel Dänzer | 88319f2 | 2019-09-18 16:17:01 +0200 | [diff] [blame] | 411 | extends: |
| 412 | - scons |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 413 | - .use-debian-9:amd64 |
Michel Dänzer | baa5024 | 2019-09-12 11:38:06 +0200 | [diff] [blame] | 414 | script: |
| 415 | - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh |
| 416 | - LLVM_VERSION=4.0 .gitlab-ci/scons-build.sh |
| 417 | - LLVM_VERSION=5.0 .gitlab-ci/scons-build.sh |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 418 | |
Eric Engestrom | 3bcd54f | 2019-10-14 23:53:15 +0100 | [diff] [blame] | 419 | .test: |
| 420 | extends: .ci-run-policy |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 421 | stage: test |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 422 | variables: |
| 423 | GIT_STRATEGY: none # testing doesn't build anything from source |
Eric Engestrom | 3bcd54f | 2019-10-14 23:53:15 +0100 | [diff] [blame] | 424 | |
| 425 | .deqp-test: |
| 426 | extends: |
| 427 | - .test |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 428 | - .use-debian-10:amd64 |
Eric Engestrom | 3bcd54f | 2019-10-14 23:53:15 +0100 | [diff] [blame] | 429 | variables: |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 430 | DEQP_SKIPS: deqp-default-skips.txt |
| 431 | script: |
| 432 | # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY |
| 433 | - rm -rf install |
| 434 | - tar -xf artifacts/install.tar |
| 435 | - ./artifacts/deqp-runner.sh |
| 436 | artifacts: |
| 437 | when: on_failure |
| 438 | name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME" |
| 439 | paths: |
| 440 | - results/ |
Michel Dänzer | cccb68b | 2019-09-13 11:13:12 +0200 | [diff] [blame] | 441 | dependencies: |
| 442 | - meson-main |
Michel Dänzer | c5aa271 | 2019-10-22 11:19:17 +0200 | [diff] [blame] | 443 | needs: |
| 444 | - meson-main |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 445 | - debian-10:amd64 |
Eric Anholt | 46daaca | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 446 | |
| 447 | test-llvmpipe-gles2: |
| 448 | parallel: 4 |
| 449 | variables: |
| 450 | DEQP_VER: gles2 |
| 451 | DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt |
| 452 | LIBGL_ALWAYS_SOFTWARE: "true" |
| 453 | DEQP_RENDERER_MATCH: "llvmpipe" |
| 454 | extends: .deqp-test |
Eric Anholt | 553cd82 | 2019-08-09 10:32:40 -0700 | [diff] [blame] | 455 | |
| 456 | test-softpipe-gles2: |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 457 | extends: test-llvmpipe-gles2 |
Eric Anholt | 553cd82 | 2019-08-09 10:32:40 -0700 | [diff] [blame] | 458 | variables: |
Eric Anholt | 553cd82 | 2019-08-09 10:32:40 -0700 | [diff] [blame] | 459 | DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt |
Eric Anholt | 553cd82 | 2019-08-09 10:32:40 -0700 | [diff] [blame] | 460 | DEQP_RENDERER_MATCH: "softpipe" |
| 461 | GALLIUM_DRIVER: "softpipe" |
Eric Anholt | 553cd82 | 2019-08-09 10:32:40 -0700 | [diff] [blame] | 462 | |
| 463 | # The GLES2 CTS run takes about 8 minutes of CPU time, while GLES3 is |
| 464 | # 25 minutes. Until we can get its runtime down, just do a partial |
| 465 | # (every 10 tests) run. |
| 466 | test-softpipe-gles3-limited: |
| 467 | variables: |
| 468 | DEQP_VER: gles3 |
| 469 | DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt |
| 470 | LIBGL_ALWAYS_SOFTWARE: "true" |
| 471 | DEQP_RENDERER_MATCH: "softpipe" |
| 472 | GALLIUM_DRIVER: "softpipe" |
| 473 | CI_NODE_INDEX: 1 |
| 474 | CI_NODE_TOTAL: 10 |
| 475 | extends: .deqp-test |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 476 | |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 477 | arm64_a630_gles2: |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 478 | extends: .deqp-test |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 479 | image: $DEBIAN_ARM64_IMAGE |
| 480 | variables: |
| 481 | DEQP_VER: gles2 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 482 | DEQP_RENDERER_MATCH: "FD630" |
| 483 | DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt |
| 484 | DEQP_SKIPS: deqp-freedreno-a630-skips.txt |
| 485 | NIR_VALIDATE: 0 |
| 486 | tags: |
| 487 | - mesa-cheza |
| 488 | dependencies: |
| 489 | - meson-arm64 |
Michel Dänzer | f2b8051 | 2019-09-18 16:28:41 +0200 | [diff] [blame] | 490 | needs: |
| 491 | - meson-arm64 |
Michel Dänzer | 163ec5d | 2019-10-08 19:46:11 +0200 | [diff] [blame] | 492 | - debian-10:arm64 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 493 | |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 494 | arm64_a630_gles31: |
| 495 | extends: arm64_a630_gles2 |
| 496 | parallel: 4 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 497 | variables: |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 498 | DEQP_VER: gles31 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 499 | |
| 500 | arm64_a630_gles3: |
| 501 | parallel: 6 |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 502 | extends: arm64_a630_gles2 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 503 | variables: |
| 504 | DEQP_VER: gles3 |
| 505 | |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 506 | arm64_a306_gles2: |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 507 | parallel: 4 |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 508 | extends: arm64_a630_gles2 |
Eric Anholt | 6f0dc08 | 2019-06-28 16:35:32 -0700 | [diff] [blame] | 509 | variables: |
Michel Dänzer | 128581d | 2019-09-11 18:55:43 +0200 | [diff] [blame] | 510 | DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt |
| 511 | DEQP_SKIPS: deqp-default-skips.txt |
| 512 | DEQP_RENDERER_MATCH: "FD307" |
| 513 | tags: |
| 514 | - db410c |