2019-09-25 15:54:59 -06:00
|
|
|
# This is the tag of the docker image used for the build jobs. If the
|
|
|
|
# image doesn't exist yet, the containers stage generates it.
|
|
|
|
#
|
|
|
|
# In order to generate a new image, one should generally change the tag.
|
|
|
|
# While removing the image from the registry would also work, that's not
|
|
|
|
# recommended except for ephemeral images during development: Replacing
|
|
|
|
# an image after a significant amount of time might pull in newer
|
|
|
|
# versions of gcc/clang or other packages, which might break the build
|
|
|
|
# with older commits using the same tag.
|
|
|
|
#
|
|
|
|
# After merging a change resulting in generating a new image to the
|
|
|
|
# main repository, it's recommended to remove the image from the source
|
|
|
|
# repository's container registry, so that the image from the main
|
|
|
|
# repository's registry will be used there as well.
|
|
|
|
variables:
|
|
|
|
UPSTREAM_REPO: mesa/drm
|
2021-02-01 04:23:20 -07:00
|
|
|
DEBIAN_TAG: "2021-02-11"
|
2019-09-25 15:54:59 -06:00
|
|
|
DEBIAN_VERSION: buster-slim
|
|
|
|
DEBIAN_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG"
|
2018-09-06 04:01:17 -06:00
|
|
|
|
2019-09-25 15:54:59 -06:00
|
|
|
include:
|
|
|
|
- project: 'wayland/ci-templates'
|
2019-12-03 08:00:41 -07:00
|
|
|
ref: 0a9bdd33a98f05af6761ab118b5074952242aab0
|
2019-09-25 15:54:59 -06:00
|
|
|
file: '/templates/debian.yml'
|
2018-09-06 05:10:50 -06:00
|
|
|
|
2019-09-25 15:54:59 -06:00
|
|
|
stages:
|
|
|
|
- containers
|
|
|
|
- build
|
|
|
|
|
|
|
|
|
|
|
|
# When & how to run the CI
|
|
|
|
.ci-run-policy:
|
2019-11-12 05:13:11 -07:00
|
|
|
except:
|
|
|
|
- schedules
|
2019-09-25 15:54:59 -06:00
|
|
|
retry:
|
|
|
|
max: 2
|
|
|
|
when:
|
|
|
|
- runner_system_failure
|
|
|
|
|
|
|
|
# CONTAINERS
|
|
|
|
|
|
|
|
debian:
|
|
|
|
stage: containers
|
|
|
|
extends:
|
|
|
|
- .ci-run-policy
|
|
|
|
- .debian@container-ifnot-exists
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
|
|
|
|
DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
|
2018-08-30 08:51:40 -06:00
|
|
|
|
2019-09-25 15:54:59 -06:00
|
|
|
|
|
|
|
# BUILD
|
|
|
|
|
|
|
|
.meson-build:
|
2018-08-30 08:51:40 -06:00
|
|
|
stage: build
|
2019-09-25 15:54:59 -06:00
|
|
|
variables:
|
|
|
|
GIT_DEPTH: 10
|
|
|
|
script:
|
2019-12-17 15:29:11 -07:00
|
|
|
- meson build
|
2019-09-25 15:54:59 -06:00
|
|
|
-D amdgpu=true
|
|
|
|
-D cairo-tests=true
|
|
|
|
-D etnaviv=true
|
|
|
|
-D exynos=true
|
|
|
|
-D freedreno=true
|
|
|
|
-D freedreno-kgsl=true
|
|
|
|
-D intel=true
|
|
|
|
-D libkms=true
|
|
|
|
-D man-pages=true
|
|
|
|
-D nouveau=true
|
|
|
|
-D omap=true
|
|
|
|
-D radeon=true
|
|
|
|
-D tegra=true
|
|
|
|
-D udev=true
|
2019-10-20 16:06:56 -06:00
|
|
|
-D valgrind=auto
|
2019-09-25 15:54:59 -06:00
|
|
|
-D vc4=true
|
|
|
|
-D vmwgfx=true
|
2019-10-20 16:06:56 -06:00
|
|
|
${CROSS+--cross /cross_file-$CROSS.txt}
|
2019-12-17 15:29:11 -07:00
|
|
|
- ninja -C build
|
|
|
|
- ninja -C build test
|
|
|
|
- DESTDIR=$PWD/install ninja -C build install
|
2019-09-25 15:54:59 -06:00
|
|
|
artifacts:
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
2019-12-17 15:29:11 -07:00
|
|
|
- build/meson-logs/*
|
2019-09-25 15:54:59 -06:00
|
|
|
|
2019-11-12 05:13:11 -07:00
|
|
|
meson-x86_64:
|
|
|
|
extends:
|
|
|
|
- .ci-run-policy
|
|
|
|
- .meson-build
|
2019-09-25 15:54:59 -06:00
|
|
|
image: $DEBIAN_IMAGE
|
|
|
|
needs:
|
|
|
|
- debian
|
|
|
|
|
2018-09-05 05:23:26 -06:00
|
|
|
meson-i386:
|
|
|
|
extends: meson-x86_64
|
|
|
|
variables:
|
|
|
|
CROSS: i386
|
|
|
|
|
2018-10-24 04:19:15 -06:00
|
|
|
meson-aarch64:
|
|
|
|
extends: meson-x86_64
|
|
|
|
variables:
|
|
|
|
CROSS: arm64
|
|
|
|
|
|
|
|
meson-armhf:
|
|
|
|
extends: meson-x86_64
|
|
|
|
variables:
|
|
|
|
CROSS: armhf
|
|
|
|
|
2019-11-16 04:13:36 -07:00
|
|
|
meson-ppc64el:
|
|
|
|
extends: meson-x86_64
|
|
|
|
variables:
|
|
|
|
CROSS: ppc64el
|
|
|
|
|
2019-11-12 05:13:11 -07:00
|
|
|
meson-arch-daily:
|
|
|
|
rules:
|
|
|
|
- if: '$SCHEDULE == "arch-daily"'
|
|
|
|
when: on_success
|
|
|
|
- when: never
|
2021-04-29 02:15:11 -06:00
|
|
|
image: archlinux/archlinux:base-devel
|
2019-11-12 05:13:11 -07:00
|
|
|
before_script:
|
|
|
|
- pacman -Syu --noconfirm --needed
|
|
|
|
cairo
|
|
|
|
cunit
|
|
|
|
libatomic_ops
|
|
|
|
libpciaccess
|
|
|
|
meson
|
|
|
|
valgrind
|
2020-06-03 03:58:07 -06:00
|
|
|
python-docutils
|
2019-09-25 15:54:59 -06:00
|
|
|
extends: .meson-build
|