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