-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (69 loc) · 2.08 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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