2020-03-18 16:42:27 +00:00
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
2022-01-19 23:04:44 +00:00
|
|
|
# SPDX-FileCopyrightText: 2018-2022 Collabora, Ltd. and the Monado contributors
|
|
|
|
|
|
|
|
######################################
|
|
|
|
# GENERATED - DO NOT EDIT #
|
|
|
|
# see .gitlab-ci/ci.template instead #
|
|
|
|
######################################
|
2020-03-18 16:42:27 +00:00
|
|
|
|
2019-03-19 08:04:39 +00:00
|
|
|
variables:
|
2020-04-27 22:49:46 +00:00
|
|
|
FDO_UPSTREAM_REPO: monado/monado
|
2019-04-09 16:07:14 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
.templates_sha: &templates_sha 34039cd573a2df832d465bc9e4c5f543571f5241
|
2021-02-23 20:26:46 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
include:
|
|
|
|
# Debian
|
|
|
|
- project: "freedesktop/ci-templates"
|
|
|
|
ref: *templates_sha
|
|
|
|
file: "/templates/debian.yml"
|
|
|
|
# Ubuntu
|
|
|
|
- project: "freedesktop/ci-templates"
|
|
|
|
ref: *templates_sha
|
|
|
|
file: "/templates/ubuntu.yml"
|
|
|
|
# Arch
|
|
|
|
- project: "freedesktop/ci-templates"
|
|
|
|
ref: *templates_sha
|
|
|
|
file: "/templates/arch.yml"
|
2020-05-06 17:59:27 +00:00
|
|
|
|
2021-02-23 20:26:46 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
# Variables for build and usage of Debian bullseye image
|
|
|
|
.monado.variables.debian:bullseye:
|
2020-04-27 22:49:46 +00:00
|
|
|
variables:
|
2022-01-19 23:04:44 +00:00
|
|
|
FDO_DISTRIBUTION_VERSION: "bullseye"
|
|
|
|
FDO_DISTRIBUTION_TAG: "2022-01-19.0"
|
2021-10-15 19:55:55 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
# Variables for build and usage of Debian bullseye-ndk image
|
|
|
|
.monado.variables.debian:bullseye-ndk:
|
2021-10-15 19:55:55 +00:00
|
|
|
variables:
|
2022-01-19 23:04:44 +00:00
|
|
|
FDO_DISTRIBUTION_VERSION: "bullseye"
|
|
|
|
FDO_DISTRIBUTION_TAG: "2022-01-19.0"
|
|
|
|
FDO_REPO_SUFFIX: ndk
|
2020-04-27 22:49:46 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
# Variables for build and usage of Ubuntu focal image
|
2020-05-11 16:16:32 +00:00
|
|
|
.monado.variables.ubuntu:focal:
|
2020-05-06 22:27:14 +00:00
|
|
|
variables:
|
|
|
|
FDO_DISTRIBUTION_VERSION: "20.04"
|
2021-10-15 19:55:55 +00:00
|
|
|
FDO_DISTRIBUTION_TAG: "2021-10-27.1"
|
2020-05-06 22:27:14 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
# Variables for build and usage of Ubuntu hirsute image
|
2021-10-15 19:55:55 +00:00
|
|
|
.monado.variables.ubuntu:hirsute:
|
2021-03-19 14:58:06 +00:00
|
|
|
variables:
|
2021-10-15 19:55:55 +00:00
|
|
|
FDO_DISTRIBUTION_VERSION: "21.04"
|
|
|
|
FDO_DISTRIBUTION_TAG: "2021-10-27.1"
|
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
# Variables for build and usage of Ubuntu impish image
|
2021-10-15 19:55:55 +00:00
|
|
|
.monado.variables.ubuntu:impish:
|
|
|
|
variables:
|
|
|
|
FDO_DISTRIBUTION_VERSION: "21.10"
|
2021-10-27 22:08:50 +00:00
|
|
|
FDO_DISTRIBUTION_TAG: "2021-10-28.0"
|
2021-03-19 14:58:06 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
# Variables for build and usage of Arch rolling image
|
2020-05-11 16:16:32 +00:00
|
|
|
.monado.variables.arch:rolling:
|
2020-04-27 22:49:46 +00:00
|
|
|
variables:
|
2022-01-19 23:04:44 +00:00
|
|
|
FDO_DISTRIBUTION_VERSION: "rolling"
|
2021-08-25 13:39:23 +00:00
|
|
|
FDO_DISTRIBUTION_TAG: "2021-09-14.0"
|
2020-04-27 22:49:46 +00:00
|
|
|
|
2019-03-19 08:04:39 +00:00
|
|
|
stages:
|
|
|
|
- container_prep
|
|
|
|
- build
|
2020-05-07 16:25:42 +00:00
|
|
|
- package
|
2020-05-11 16:16:32 +00:00
|
|
|
- reprepro
|
2019-08-23 14:42:41 +00:00
|
|
|
- pages
|
2019-08-23 14:07:49 +00:00
|
|
|
- deploy
|
2019-03-19 08:04:39 +00:00
|
|
|
|
2020-04-27 22:49:46 +00:00
|
|
|
###
|
|
|
|
# Container prep jobs
|
2022-01-19 23:04:44 +00:00
|
|
|
# Make Debian bullseye image
|
2021-10-15 19:55:55 +00:00
|
|
|
debian:bullseye:container_prep:
|
|
|
|
stage: container_prep
|
|
|
|
extends:
|
|
|
|
- .monado.variables.debian:bullseye
|
|
|
|
- .fdo.container-build@debian # from ci-templates
|
2019-12-03 15:15:33 +00:00
|
|
|
variables:
|
2022-01-19 23:04:44 +00:00
|
|
|
FDO_DISTRIBUTION_PACKAGES: 'build-essential ca-certificates clang-format cmake codespell curl debhelper devscripts doxygen dput-ng gettext-base git glslang-tools graphviz libavcodec-dev libbsd-dev libcjson-dev libdbus-1-dev libegl1-mesa-dev libeigen3-dev libgl1-mesa-dev libglvnd-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libhidapi-dev libopencv-dev libsdl2-dev libsystemd-dev libudev-dev libusb-1.0-0-dev libuvc-dev libv4l-dev libvulkan-dev libwayland-dev libx11-dev libx11-xcb-dev libxcb-randr0-dev libxrandr-dev libxxf86vm-dev meson ninja-build pandoc patch pkg-config python3 python3-click python3-pip unzip wget'
|
|
|
|
FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/i386_and_proclamation_container_prep.sh'
|
2019-03-19 08:04:39 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
# Make Debian bullseye-ndk image
|
|
|
|
debian:bullseye-ndk:container_prep:
|
2019-04-09 16:07:14 +00:00
|
|
|
stage: container_prep
|
2020-04-27 22:49:46 +00:00
|
|
|
extends:
|
2022-01-19 23:04:44 +00:00
|
|
|
- .monado.variables.debian:bullseye-ndk
|
|
|
|
- .fdo.container-build@debian # from ci-templates
|
2019-12-03 15:15:33 +00:00
|
|
|
variables:
|
2022-01-19 23:04:44 +00:00
|
|
|
FDO_DISTRIBUTION_PACKAGES: 'ca-certificates cmake git glslang-tools libeigen3-dev meson ninja-build pkg-config python3 unzip wget'
|
|
|
|
FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/ndk_container_prep.sh'
|
2019-04-09 16:07:14 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
# Make Ubuntu focal image
|
2021-03-22 18:13:32 +00:00
|
|
|
ubuntu:focal:container_prep:
|
2020-05-06 22:27:14 +00:00
|
|
|
stage: container_prep
|
|
|
|
extends:
|
2020-05-11 16:16:32 +00:00
|
|
|
- .monado.variables.ubuntu:focal
|
2020-05-06 22:27:14 +00:00
|
|
|
- .fdo.container-build@ubuntu # from ci-templates
|
|
|
|
variables:
|
2022-01-19 23:04:44 +00:00
|
|
|
FDO_DISTRIBUTION_PACKAGES: 'build-essential ca-certificates cmake curl debhelper devscripts dput-ng gettext-base git glslang-tools libavcodec-dev libbsd-dev libcjson-dev libdbus-1-dev libegl1-mesa-dev libeigen3-dev libgl1-mesa-dev libglvnd-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libhidapi-dev libopencv-dev libsdl2-dev libsystemd-dev libudev-dev libusb-1.0-0-dev libuvc-dev libv4l-dev libvulkan-dev libwayland-dev libx11-dev libx11-xcb-dev libxcb-randr0-dev libxrandr-dev libxxf86vm-dev meson ninja-build pandoc patch pkg-config python3 unzip wget'
|
2020-05-06 22:27:14 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
# Make Ubuntu hirsute image
|
2021-10-15 19:55:55 +00:00
|
|
|
ubuntu:hirsute:container_prep:
|
2021-03-19 14:58:06 +00:00
|
|
|
stage: container_prep
|
|
|
|
extends:
|
2021-10-15 19:55:55 +00:00
|
|
|
- .monado.variables.ubuntu:hirsute
|
|
|
|
- .fdo.container-build@ubuntu # from ci-templates
|
|
|
|
variables:
|
2022-01-19 23:04:44 +00:00
|
|
|
FDO_DISTRIBUTION_PACKAGES: 'build-essential ca-certificates cmake curl debhelper devscripts dput-ng gettext-base git glslang-tools libavcodec-dev libbsd-dev libcjson-dev libdbus-1-dev libegl1-mesa-dev libeigen3-dev libgl1-mesa-dev libglvnd-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libhidapi-dev libopencv-dev libsdl2-dev libsystemd-dev libudev-dev libusb-1.0-0-dev libuvc-dev libv4l-dev libvulkan-dev libwayland-dev libx11-dev libx11-xcb-dev libxcb-randr0-dev libxrandr-dev libxxf86vm-dev meson ninja-build pandoc patch pkg-config python3 unzip wget'
|
2021-10-15 19:55:55 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
# Make Ubuntu impish image
|
2021-10-15 19:55:55 +00:00
|
|
|
ubuntu:impish:container_prep:
|
|
|
|
stage: container_prep
|
|
|
|
extends:
|
|
|
|
- .monado.variables.ubuntu:impish
|
2021-03-19 14:58:06 +00:00
|
|
|
- .fdo.container-build@ubuntu # from ci-templates
|
|
|
|
variables:
|
2022-01-19 23:04:44 +00:00
|
|
|
FDO_DISTRIBUTION_PACKAGES: 'build-essential ca-certificates cmake curl debhelper devscripts dput-ng gettext-base git glslang-tools libavcodec-dev libbsd-dev libcjson-dev libdbus-1-dev libegl1-mesa-dev libeigen3-dev libgl1-mesa-dev libglvnd-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libhidapi-dev libopencv-dev libsdl2-dev libsystemd-dev libudev-dev libusb-1.0-0-dev libuvc-dev libv4l-dev libvulkan-dev libwayland-dev libx11-dev libx11-xcb-dev libxcb-randr0-dev libxrandr-dev libxxf86vm-dev meson ninja-build pandoc patch pkg-config python3 reprepro unzip wget'
|
2021-03-19 14:58:06 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
# Make Arch rolling image
|
|
|
|
arch:rolling:container_prep:
|
2020-04-28 16:48:59 +00:00
|
|
|
stage: container_prep
|
|
|
|
extends:
|
2022-01-19 23:04:44 +00:00
|
|
|
- .monado.variables.arch:rolling
|
|
|
|
- .fdo.container-build@arch # from ci-templates
|
2020-04-28 16:48:59 +00:00
|
|
|
variables:
|
2022-01-19 23:04:44 +00:00
|
|
|
FDO_DISTRIBUTION_PACKAGES: 'check clang cmake diffutils doxygen eigen ffmpeg gcc git glfw-x11 glslang graphviz gtk3 hidapi libusb libxrandr mesa meson ninja opencv patch pkgconfig python3 qt5-base v4l-utils vulkan-headers vulkan-icd-loader'
|
2020-04-28 16:48:59 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
###
|
|
|
|
# Container usage base jobs
|
|
|
|
|
|
|
|
# Base for using Debian bullseye image
|
|
|
|
.monado.image.debian:bullseye:
|
2020-04-27 22:49:46 +00:00
|
|
|
extends:
|
2021-11-04 17:53:19 +00:00
|
|
|
- .monado.variables.debian:bullseye
|
2020-04-27 22:49:46 +00:00
|
|
|
- .fdo.distribution-image@debian # from ci-templates
|
2022-01-19 23:04:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Base for using Debian bullseye-ndk image
|
|
|
|
.monado.image.debian:bullseye-ndk:
|
|
|
|
extends:
|
|
|
|
- .monado.variables.debian:bullseye-ndk
|
|
|
|
- .fdo.suffixed-image@debian # from ci-templates
|
|
|
|
|
|
|
|
|
|
|
|
# Base for using Ubuntu focal image
|
|
|
|
.monado.image.ubuntu:focal:
|
|
|
|
extends:
|
|
|
|
- .monado.variables.ubuntu:focal
|
|
|
|
- .fdo.distribution-image@ubuntu # from ci-templates
|
|
|
|
|
|
|
|
|
|
|
|
# Base for using Ubuntu hirsute image
|
|
|
|
.monado.image.ubuntu:hirsute:
|
|
|
|
extends:
|
|
|
|
- .monado.variables.ubuntu:hirsute
|
|
|
|
- .fdo.distribution-image@ubuntu # from ci-templates
|
|
|
|
|
|
|
|
|
|
|
|
# Base for using Ubuntu impish image
|
|
|
|
.monado.image.ubuntu:impish:
|
|
|
|
extends:
|
|
|
|
- .monado.variables.ubuntu:impish
|
|
|
|
- .fdo.distribution-image@ubuntu # from ci-templates
|
|
|
|
|
|
|
|
|
|
|
|
# Base for using Arch rolling image
|
|
|
|
.monado.image.arch:rolling:
|
|
|
|
extends:
|
|
|
|
- .monado.variables.arch:rolling
|
|
|
|
- .fdo.distribution-image@arch # from ci-templates
|
|
|
|
|
|
|
|
|
|
|
|
# Style check job
|
|
|
|
format-and-spellcheck:
|
|
|
|
extends:
|
|
|
|
- .monado.image.debian:bullseye
|
|
|
|
|
2019-06-18 16:27:12 +00:00
|
|
|
stage: build
|
|
|
|
script:
|
2020-03-23 20:33:57 +00:00
|
|
|
- scripts/format-and-spellcheck.sh
|
2019-06-18 16:27:12 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- patches/
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
|
2021-04-21 19:27:04 +00:00
|
|
|
# Verify REUSE compliance
|
|
|
|
reuse:
|
|
|
|
stage: build
|
|
|
|
image:
|
|
|
|
name: fsfe/reuse:latest
|
|
|
|
entrypoint: [""]
|
|
|
|
script:
|
|
|
|
- reuse lint
|
|
|
|
|
2019-09-24 14:13:11 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
debian:cmake:
|
|
|
|
stage: build
|
2020-04-27 22:49:46 +00:00
|
|
|
extends:
|
2022-01-19 23:04:44 +00:00
|
|
|
- .monado.image.debian:bullseye
|
|
|
|
|
2020-04-27 22:49:46 +00:00
|
|
|
before_script:
|
2020-03-23 20:33:57 +00:00
|
|
|
- pushd doc/changes
|
|
|
|
- proclamation build --overwrite vNEXT
|
|
|
|
- popd
|
2022-01-19 23:04:44 +00:00
|
|
|
script:
|
|
|
|
- rm -rf build
|
|
|
|
- cmake -GNinja -B build -S .
|
|
|
|
- echo "Build Options:"; grep "^XRT_" build/CMakeCache.txt
|
|
|
|
- ninja -C build
|
|
|
|
- cd build && ctest --output-on-failure
|
2019-08-23 14:07:49 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- build/doc/html/
|
2019-04-09 16:07:14 +00:00
|
|
|
|
2020-04-28 16:15:34 +00:00
|
|
|
debian:cmake-no-opencv:
|
2022-01-19 23:04:44 +00:00
|
|
|
stage: build
|
2020-04-28 16:15:34 +00:00
|
|
|
extends:
|
2022-01-19 23:04:44 +00:00
|
|
|
- .monado.image.debian:bullseye
|
2020-04-28 16:15:34 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
script:
|
|
|
|
- rm -rf build
|
|
|
|
- cmake -GNinja -B build -S . -DBUILD_DOC=OFF -DXRT_HAVE_OPENCV=OFF
|
|
|
|
- echo "Build Options:"; grep "^XRT_" build/CMakeCache.txt
|
|
|
|
- ninja -C build
|
|
|
|
- cd build && ctest --output-on-failure
|
2020-04-28 16:15:34 +00:00
|
|
|
|
|
|
|
debian:cmake-no-sdl2:
|
2022-01-19 23:04:44 +00:00
|
|
|
stage: build
|
2020-04-28 16:15:34 +00:00
|
|
|
extends:
|
2022-01-19 23:04:44 +00:00
|
|
|
- .monado.image.debian:bullseye
|
|
|
|
|
|
|
|
script:
|
|
|
|
- rm -rf build
|
|
|
|
- cmake -GNinja -B build -S . -DBUILD_DOC=OFF -DXRT_HAVE_SDL2=OFF
|
|
|
|
- echo "Build Options:"; grep "^XRT_" build/CMakeCache.txt
|
|
|
|
- ninja -C build
|
|
|
|
- cd build && ctest --output-on-failure
|
2020-04-28 16:15:34 +00:00
|
|
|
|
2020-04-29 23:18:36 +00:00
|
|
|
debian:cmake-no-service:
|
2022-01-19 23:04:44 +00:00
|
|
|
stage: build
|
2020-04-29 23:18:36 +00:00
|
|
|
extends:
|
2022-01-19 23:04:44 +00:00
|
|
|
- .monado.image.debian:bullseye
|
2020-04-29 23:18:36 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
script:
|
|
|
|
- rm -rf build
|
|
|
|
- cmake -GNinja -B build -S . -DBUILD_DOC=OFF -DXRT_FEATURE_SERVICE=OFF
|
|
|
|
- echo "Build Options:"; grep "^XRT_" build/CMakeCache.txt
|
|
|
|
- ninja -C build
|
|
|
|
- cd build && ctest --output-on-failure
|
|
|
|
|
|
|
|
debian:cmake:32bit:
|
|
|
|
stage: build
|
2020-04-27 22:49:46 +00:00
|
|
|
extends:
|
2022-01-19 23:04:44 +00:00
|
|
|
- .monado.image.debian:bullseye
|
2020-04-27 22:49:46 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
script:
|
|
|
|
- rm -rf build
|
|
|
|
- cmake -GNinja -B build -S . -DCMAKE_TOOLCHAIN_FILE=.gitlab-ci/i386.cmake -DXRT_HAVE_OPENCV=OFF
|
|
|
|
- echo "Build Options:"; grep "^XRT_" build/CMakeCache.txt
|
|
|
|
- ninja -C build
|
|
|
|
- cd build && ctest --output-on-failure
|
|
|
|
|
|
|
|
debian:meson:
|
|
|
|
stage: build
|
2020-05-12 16:49:21 +00:00
|
|
|
extends:
|
2022-01-19 23:04:44 +00:00
|
|
|
- .monado.image.debian:bullseye
|
2020-05-12 16:49:21 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
script:
|
|
|
|
- rm -rf build
|
|
|
|
- meson setup build .
|
|
|
|
- ninja -C build
|
|
|
|
|
|
|
|
debian:meson:32bit:
|
|
|
|
stage: build
|
2020-05-06 22:27:14 +00:00
|
|
|
extends:
|
2022-01-19 23:04:44 +00:00
|
|
|
- .monado.image.debian:bullseye
|
2020-05-06 22:27:14 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
script:
|
|
|
|
- rm -rf build
|
|
|
|
- meson setup build . --prefix=/usr --libdir=/usr/lib/i386-linux-gnu --cross-file=.gitlab-ci/i386-cross.txt
|
|
|
|
- ninja -C build
|
|
|
|
|
|
|
|
ndk:armeabi-v7a:
|
|
|
|
stage: build
|
2020-04-27 22:49:46 +00:00
|
|
|
extends:
|
2022-01-19 23:04:44 +00:00
|
|
|
- .monado.image.debian:bullseye-ndk
|
2020-04-27 22:49:46 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
script:
|
|
|
|
- rm -rf build
|
|
|
|
- cmake -GNinja -B build -S . -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=26 -DBUILD_DOC=OFF -DCMAKE_TOOLCHAIN_FILE=/opt/android-ndk/build/cmake/android.toolchain.cmake -DEigen3_DIR=/usr/lib/cmake/eigen3/ -DEIGEN3_INCLUDE_DIR=/usr/include/eigen3
|
|
|
|
- echo "Build Options:"; grep "^XRT_" build/CMakeCache.txt
|
|
|
|
- ninja -C build
|
|
|
|
|
|
|
|
ndk:arm64-v8a:
|
|
|
|
stage: build
|
2020-05-06 22:27:14 +00:00
|
|
|
extends:
|
2022-01-19 23:04:44 +00:00
|
|
|
- .monado.image.debian:bullseye-ndk
|
2020-05-06 22:27:14 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
script:
|
|
|
|
- rm -rf build
|
|
|
|
- cmake -GNinja -B build -S . -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=26 -DBUILD_DOC=OFF -DCMAKE_TOOLCHAIN_FILE=/opt/android-ndk/build/cmake/android.toolchain.cmake -DEigen3_DIR=/usr/lib/cmake/eigen3/ -DEIGEN3_INCLUDE_DIR=/usr/include/eigen3
|
|
|
|
- echo "Build Options:"; grep "^XRT_" build/CMakeCache.txt
|
|
|
|
- ninja -C build
|
|
|
|
|
|
|
|
ubuntu:cmake:
|
|
|
|
stage: build
|
2020-04-27 22:49:46 +00:00
|
|
|
extends:
|
2022-01-19 23:04:44 +00:00
|
|
|
- .monado.image.ubuntu:focal
|
2019-08-23 14:07:49 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
script:
|
|
|
|
- rm -rf build
|
|
|
|
- cmake -GNinja -B build -S . -DBUILD_DOC=OFF
|
|
|
|
- echo "Build Options:"; grep "^XRT_" build/CMakeCache.txt
|
|
|
|
- ninja -C build
|
|
|
|
- cd build && ctest --output-on-failure
|
|
|
|
|
|
|
|
ubuntu:meson:
|
|
|
|
stage: build
|
2020-04-27 22:50:56 +00:00
|
|
|
extends:
|
2022-01-19 23:04:44 +00:00
|
|
|
- .monado.image.ubuntu:focal
|
2020-04-27 22:50:56 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
script:
|
|
|
|
- rm -rf build
|
|
|
|
- meson setup build .
|
|
|
|
- ninja -C build
|
|
|
|
|
|
|
|
ubuntu:latest:cmake:
|
|
|
|
stage: build
|
2020-04-27 22:50:56 +00:00
|
|
|
extends:
|
2022-01-19 23:04:44 +00:00
|
|
|
- .monado.image.ubuntu:impish
|
2020-04-27 22:50:56 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
script:
|
|
|
|
- rm -rf build
|
|
|
|
- cmake -GNinja -B build -S . -DBUILD_DOC=OFF
|
|
|
|
- echo "Build Options:"; grep "^XRT_" build/CMakeCache.txt
|
|
|
|
- ninja -C build
|
|
|
|
- cd build && ctest --output-on-failure
|
|
|
|
|
|
|
|
arch:cmake:
|
2021-02-23 20:41:02 +00:00
|
|
|
stage: build
|
|
|
|
extends:
|
2022-01-19 23:04:44 +00:00
|
|
|
- .monado.image.arch:rolling
|
|
|
|
|
2021-02-23 20:41:02 +00:00
|
|
|
script:
|
2022-01-19 23:04:44 +00:00
|
|
|
- rm -rf build
|
|
|
|
- cmake -GNinja -B build -S .
|
|
|
|
- echo "Build Options:"; grep "^XRT_" build/CMakeCache.txt
|
|
|
|
- ninja -C build
|
|
|
|
- cd build && ctest --output-on-failure
|
2021-02-23 20:41:02 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
arch:cmake:clang:
|
|
|
|
stage: build
|
|
|
|
extends:
|
|
|
|
- .monado.image.arch:rolling
|
2021-02-23 20:41:02 +00:00
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
script:
|
|
|
|
- rm -rf build
|
|
|
|
- cmake -GNinja -B build -S . -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++
|
|
|
|
- echo "Build Options:"; grep "^XRT_" build/CMakeCache.txt
|
|
|
|
- ninja -C build
|
|
|
|
- cd build && ctest --output-on-failure
|
|
|
|
|
|
|
|
arch:meson:
|
|
|
|
stage: build
|
|
|
|
extends:
|
|
|
|
- .monado.image.arch:rolling
|
|
|
|
|
|
|
|
script:
|
|
|
|
- rm -rf build
|
|
|
|
- meson setup build .
|
|
|
|
- ninja -C build
|
2021-02-23 20:41:02 +00:00
|
|
|
|
2020-05-07 16:25:42 +00:00
|
|
|
# Packaging
|
2021-02-23 20:41:02 +00:00
|
|
|
.monado.packaging.conditions:
|
|
|
|
rules:
|
|
|
|
# Only the default branch of the "upstream" repo.
|
2021-03-25 15:58:22 +00:00
|
|
|
- if: "$CI_PROJECT_PATH == $FDO_UPSTREAM_REPO && $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH"
|
2021-02-23 20:41:02 +00:00
|
|
|
when: on_success
|
|
|
|
# Otherwise, don't build packages.
|
|
|
|
- when: never
|
|
|
|
|
2022-01-19 23:04:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
debian:bullseye:package:
|
2021-02-23 20:41:02 +00:00
|
|
|
extends:
|
2022-01-19 23:04:44 +00:00
|
|
|
- .monado.image.debian:bullseye
|
2021-02-23 20:41:02 +00:00
|
|
|
- .monado.packaging.conditions
|
2022-01-19 23:04:44 +00:00
|
|
|
variables:
|
|
|
|
DEBFULLNAME: "Monado CI"
|
|
|
|
DEBEMAIL: "ryan.pavlik@collabora.com"
|
|
|
|
DISTRO: debian
|
|
|
|
CODENAME: bullseye
|
|
|
|
DEB_VERSION_SUFFIX: bpo11
|
2020-05-07 20:45:45 +00:00
|
|
|
stage: package
|
2020-05-08 23:10:54 +00:00
|
|
|
before_script:
|
2022-01-19 23:04:44 +00:00
|
|
|
- git config --global user.name Monado CI
|
|
|
|
- git config --global user.email ryan.pavlik@collabora.com
|
2020-05-07 16:25:42 +00:00
|
|
|
script:
|
2020-05-08 23:10:54 +00:00
|
|
|
# Prep the source tree
|
2020-05-08 20:34:39 +00:00
|
|
|
- git clean -dfx
|
2022-01-19 23:04:44 +00:00
|
|
|
# Call this script to build binary and source packages.
|
|
|
|
# Can try locally by exporting the right variables and passing -B to get only a binary package to avoid complaints.
|
|
|
|
- .gitlab-ci/build-and-submit-package.sh
|
2020-05-07 16:25:42 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2020-05-11 16:16:32 +00:00
|
|
|
- "incoming/"
|
|
|
|
expire_in: 2 days
|
2020-05-07 16:25:42 +00:00
|
|
|
|
2020-05-07 20:45:45 +00:00
|
|
|
ubuntu:focal:package:
|
|
|
|
extends:
|
2022-01-19 23:04:44 +00:00
|
|
|
- .monado.image.ubuntu:focal
|
|
|
|
- .monado.packaging.conditions
|
2020-05-07 20:45:45 +00:00
|
|
|
variables:
|
2022-01-19 23:04:44 +00:00
|
|
|
DEBFULLNAME: "Monado CI"
|
|
|
|
DEBEMAIL: "ryan.pavlik@collabora.com"
|
|
|
|
DISTRO: ubuntu
|
|
|
|
CODENAME: focal
|
|
|
|
DEB_VERSION_SUFFIX: ubuntu2004
|
|
|
|
stage: package
|
|
|
|
before_script:
|
|
|
|
- git config --global user.name Monado CI
|
|
|
|
- git config --global user.email ryan.pavlik@collabora.com
|
|
|
|
script:
|
|
|
|
# Prep the source tree
|
|
|
|
- git clean -dfx
|
|
|
|
# Call this script to build binary and source packages.
|
|
|
|
# Can try locally by exporting the right variables and passing -B to get only a binary package to avoid complaints.
|
|
|
|
- .gitlab-ci/build-and-submit-package.sh
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- "incoming/"
|
|
|
|
expire_in: 2 days
|
2020-05-07 20:45:45 +00:00
|
|
|
|
2021-10-15 19:55:55 +00:00
|
|
|
ubuntu:hirsute:package:
|
2021-03-19 14:58:06 +00:00
|
|
|
extends:
|
2022-01-19 23:04:44 +00:00
|
|
|
- .monado.image.ubuntu:hirsute
|
|
|
|
- .monado.packaging.conditions
|
2021-03-19 14:58:06 +00:00
|
|
|
variables:
|
2022-01-19 23:04:44 +00:00
|
|
|
DEBFULLNAME: "Monado CI"
|
|
|
|
DEBEMAIL: "ryan.pavlik@collabora.com"
|
|
|
|
DISTRO: ubuntu
|
|
|
|
CODENAME: hirsute
|
|
|
|
DEB_VERSION_SUFFIX: ubuntu2104
|
|
|
|
stage: package
|
|
|
|
before_script:
|
|
|
|
- git config --global user.name Monado CI
|
|
|
|
- git config --global user.email ryan.pavlik@collabora.com
|
|
|
|
script:
|
|
|
|
# Prep the source tree
|
|
|
|
- git clean -dfx
|
|
|
|
# Call this script to build binary and source packages.
|
|
|
|
# Can try locally by exporting the right variables and passing -B to get only a binary package to avoid complaints.
|
|
|
|
- .gitlab-ci/build-and-submit-package.sh
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- "incoming/"
|
|
|
|
expire_in: 2 days
|
2021-10-15 19:55:55 +00:00
|
|
|
|
|
|
|
ubuntu:impish:package:
|
|
|
|
extends:
|
2022-01-19 23:04:44 +00:00
|
|
|
- .monado.image.ubuntu:impish
|
|
|
|
- .monado.packaging.conditions
|
2021-10-15 19:55:55 +00:00
|
|
|
variables:
|
2022-01-19 23:04:44 +00:00
|
|
|
DEBFULLNAME: "Monado CI"
|
|
|
|
DEBEMAIL: "ryan.pavlik@collabora.com"
|
|
|
|
DISTRO: ubuntu
|
|
|
|
CODENAME: impish
|
|
|
|
DEB_VERSION_SUFFIX: ubuntu2110
|
|
|
|
stage: package
|
|
|
|
before_script:
|
|
|
|
- git config --global user.name Monado CI
|
|
|
|
- git config --global user.email ryan.pavlik@collabora.com
|
|
|
|
script:
|
|
|
|
# Prep the source tree
|
|
|
|
- git clean -dfx
|
|
|
|
# Call this script to build binary and source packages.
|
|
|
|
# Can try locally by exporting the right variables and passing -B to get only a binary package to avoid complaints.
|
|
|
|
- .gitlab-ci/build-and-submit-package.sh
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- "incoming/"
|
|
|
|
expire_in: 2 days
|
2021-04-21 19:27:04 +00:00
|
|
|
|
2020-05-11 16:16:32 +00:00
|
|
|
reprepro:package:
|
|
|
|
stage: reprepro
|
|
|
|
extends:
|
2022-01-19 23:04:44 +00:00
|
|
|
- .monado.image.ubuntu:impish
|
|
|
|
|
2021-02-23 20:41:02 +00:00
|
|
|
- .monado.packaging.conditions
|
2020-05-11 16:16:32 +00:00
|
|
|
dependencies:
|
2021-10-15 19:55:55 +00:00
|
|
|
- debian:bullseye:package
|
2020-05-11 16:16:32 +00:00
|
|
|
- ubuntu:focal:package
|
2021-10-15 19:55:55 +00:00
|
|
|
- ubuntu:hirsute:package
|
|
|
|
- ubuntu:impish:package
|
2020-05-11 16:16:32 +00:00
|
|
|
script:
|
2022-01-19 23:04:44 +00:00
|
|
|
- bash .gitlab-ci/reprepro.sh
|
2020-05-11 16:16:32 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- "repo/"
|
|
|
|
expire_in: 2 days
|
|
|
|
|
2019-08-23 14:07:49 +00:00
|
|
|
###
|
|
|
|
# Pages
|
|
|
|
###
|
|
|
|
pages:
|
2019-08-23 14:42:41 +00:00
|
|
|
stage: pages
|
2019-08-23 14:11:25 +00:00
|
|
|
only:
|
2021-11-08 15:44:47 +00:00
|
|
|
- main
|
2019-08-23 14:07:49 +00:00
|
|
|
dependencies:
|
2022-01-19 23:04:44 +00:00
|
|
|
- debian:cmake
|
2020-05-11 16:16:32 +00:00
|
|
|
- reprepro:package
|
2019-08-23 14:07:49 +00:00
|
|
|
script:
|
2019-09-22 14:59:17 +00:00
|
|
|
- mkdir -p public
|
|
|
|
- mv build/doc/html/* public/
|
2020-05-11 16:16:32 +00:00
|
|
|
- mv repo public/apt
|
2019-08-23 14:07:49 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2022-01-19 23:04:44 +00:00
|
|
|
- public
|