Merge pull request #56 from migueldeoleiros/release/0.1.0 #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y meson ninja-build gcc cmake pkg-config \ | |
libxkbcommon-dev libconfig-dev libjson-c-dev | |
- name: Install test dependencies | |
run: sudo apt-get install -y xvfb python3 weston | |
- name: Install wayland-server | |
run: | | |
git clone --branch 1.23 https://gitlab.freedesktop.org/wayland/wayland.git | |
cd wayland | |
meson setup build -Ddocumentation=false | |
sudo ninja -C build install | |
cd .. | |
- name: Install libdrm | |
run: | | |
git clone --branch libdrm-2.4.123 https://gitlab.freedesktop.org/mesa/drm.git | |
cd drm | |
meson setup build | |
sudo ninja -C build install | |
cd .. | |
- name: Install pixman | |
run: | | |
git clone --branch pixman-0.42.2 https://gitlab.freedesktop.org/pixman/pixman | |
cd pixman | |
meson setup build | |
sudo ninja -C build install | |
cd .. | |
- name: Install wayland-protocols | |
run: | | |
git clone --branch 1.35 https://gitlab.freedesktop.org/wayland/wayland-protocols.git | |
cd wayland-protocols | |
meson setup build | |
sudo ninja -C build install | |
cd .. | |
- name: Install wlroots | |
run: | | |
git clone --branch 0.18 https://gitlab.freedesktop.org/wlroots/wlroots | |
cd wlroots | |
meson setup build/ | |
ninja -C build/ | |
sudo ninja -C build/ install | |
cd .. | |
- name: Configure the project with Meson | |
run: meson setup build | |
- name: Build the project | |
run: meson compile -C build | |
- name: Run functional tests | |
run: | | |
mkdir -p $XDG_RUNTIME_DIR | |
TURTILE_BACKEND=headless xvfb-run --auto-servernum --server-args='-screen 0 1024x768x24' ./build/turtile -c tests/test.cfg & | |
sleep 5 | |
python tests/test.py | |
env: | |
XDG_RUNTIME_DIR: /tmp/xdg_runtime_dir |