Commit d9b136f6 authored by Lubosz Sarnecki's avatar Lubosz Sarnecki

ci: Build ArchLinux, Ubuntu 18.04 and Ubuntu 19.10.

parent 2854b16a
Pipeline #118726 passed with stage
in 5 minutes and 2 seconds
.build_template: &build_definition
script:
# Build gulkan
- mkdir deps
- cd deps
- git clone --depth 1 https://gitlab.freedesktop.org/xrdesktop/gulkan.git
- cd gulkan
- CC=clang meson build --prefix /usr
- ninja -C build install
- cd ..
# Build gxr
- git clone --depth 1 https://gitlab.freedesktop.org/xrdesktop/gxr.git
- cd gxr
- CC=clang meson build --prefix /usr
- ninja -C build install
- cd ..
# Build xrdesktop
- cd ..
- CC=clang meson build --prefix /usr
- ninja -C build install
- meson test -C build/ --no-suite xrdesktop:xr
build:arch:
image: archlinux/base:latest
before_script:
- pacman -Sy --noconfirm pkgconf meson git clang # generic build deps
- pacman -Sy --noconfirm gdk-pixbuf2 vulkan-headers vulkan-icd-loader graphene cairo glslang # gulkan deps
- pacman -Sy --noconfirm gtk3 # gxr deps
- pacman -Sy --noconfirm pygobject-devel # xrdesktop deps
<<: *build_definition
build:ubuntu19.10:
image: ubuntu:19.10
before_script:
- apt update
- apt -y install meson clang pkg-config git # generic build deps
- apt -y install libglib2.0-dev libgdk-pixbuf2.0-dev libvulkan-dev libgraphene-1.0-dev libcairo2-dev glslang-tools # gulkan deps
- apt -y install libgtk-3-dev libjson-glib-dev # gxr deps
- apt -y install python3-dev python-gi-dev # xrdesktop deps
<<: *build_definition
build:ubuntu18.04:
image: ubuntu:18.04
before_script:
- apt update
- apt -y install software-properties-common
- add-apt-repository -y ppa:graphics-drivers/ppa # for glslang-tools
- apt -y full-upgrade
- apt -y install clang ninja-build pkg-config git # generic build deps
- apt -y install libglib2.0-dev libgdk-pixbuf2.0-dev libvulkan-dev libgraphene-1.0-dev libcairo2-dev glslang-tools # gulkan deps
- apt -y install libgtk-3-dev libjson-glib-dev # gxr deps
- apt -y install python3-dev python-gi-dev # xrdesktop deps
- apt -y install python3-pip # to get recent meson on ubuntu 18.04
- pip3 install meson
<<: *build_definition
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment