mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-11-02 19:00:26 +00:00
90eee632ca
wayland/ci-templates!18 allows the $HOME environment variable to propagate into the execution of creating our build container. Without that, buildah would leave us with an empty $HOME, which would have pip install into /.local/bin. As $HOME is preserved during our actual native builds, we would try to find meson in /root/.local/bin and fail, since it had been stored to a different path. Bump the ci-templates dependency to one with the fix so we can build new images again. Signed-off-by: Daniel Stone <daniels@collabora.com>
95 lines
2.2 KiB
YAML
95 lines
2.2 KiB
YAML
# vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0:
|
|
|
|
variables:
|
|
UPSTREAM_REPO: wayland/weston
|
|
DEBIAN_VERSION: buster
|
|
DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
|
|
|
|
DEBIAN_TAG: '2019-11-04.0'
|
|
DEBIAN_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG
|
|
|
|
|
|
include:
|
|
- project: 'wayland/ci-templates'
|
|
ref: b7030c2cd0d6ccc5f6d4f8299bafa4daa9240d71
|
|
file: '/templates/debian.yml'
|
|
|
|
|
|
stages:
|
|
- container_prep
|
|
- build
|
|
- pages
|
|
|
|
|
|
container_prep:
|
|
extends: .debian@container-ifnot-exists
|
|
stage: container_prep
|
|
|
|
|
|
.build-native:
|
|
stage: build
|
|
image: $DEBIAN_CONTAINER_IMAGE
|
|
before_script:
|
|
- git clone --depth=1 https://gitlab.freedesktop.org/wayland/wayland-protocols
|
|
- export WAYLAND_PROTOCOLS_DIR="$(pwd)/prefix-wayland-protocols"
|
|
- export PKG_CONFIG_PATH="$WAYLAND_PROTOCOLS_DIR/share/pkgconfig:$PKG_CONFIG_PATH"
|
|
- export MAKEFLAGS="-j4"
|
|
- cd wayland-protocols
|
|
- git show -s HEAD
|
|
- mkdir build
|
|
- cd build
|
|
- ../autogen.sh --prefix="$WAYLAND_PROTOCOLS_DIR"
|
|
- make install
|
|
- cd ../../
|
|
- export XDG_RUNTIME_DIR="$(mktemp -p $(pwd) -d xdg-runtime-XXXXXX)"
|
|
- export BUILD_ID="weston-$CI_JOB_NAME"
|
|
- export PREFIX="$(pwd)/prefix-$BUILD_ID"
|
|
- export BUILDDIR="$(pwd)/build-$BUILD_ID"
|
|
- mkdir "$BUILDDIR" "$PREFIX"
|
|
|
|
.build-native-meson:
|
|
extends: .build-native
|
|
script:
|
|
- export PATH=~/.local/bin:$PATH
|
|
- cd "$BUILDDIR"
|
|
- meson --prefix="$PREFIX" ${MESON_OPTIONS} ..
|
|
- ninja -k0
|
|
- ninja install
|
|
- ninja test
|
|
- ninja clean
|
|
artifacts:
|
|
name: weston-$CI_COMMIT_SHA
|
|
when: always
|
|
paths:
|
|
- build-*/meson-logs
|
|
- prefix-*
|
|
|
|
build-native-meson-default-options:
|
|
variables:
|
|
MESON_OPTIONS: >
|
|
-Dwerror=true
|
|
-Ddoc=true
|
|
extends: .build-native-meson
|
|
|
|
build-native-meson-no-gl-renderer:
|
|
variables:
|
|
MESON_OPTIONS: >
|
|
-Dsimple-clients=damage,im,shm,touch,dmabuf-v4l
|
|
-Drenderer-gl=false
|
|
-Dremoting=false
|
|
-Dwerror=true
|
|
extends: .build-native-meson
|
|
|
|
pages:
|
|
stage: pages
|
|
dependencies:
|
|
- build-native-meson-default-options
|
|
script:
|
|
- export PREFIX=$(pwd)/prefix-weston-build-native-meson-default-options
|
|
- mkdir public
|
|
- cp -R $PREFIX/share/doc/weston/* public/
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
only:
|
|
- master
|