Skip to content

Commit 56d4d3f

Browse files
committed
chore: add ci
1 parent fa0e031 commit 56d4d3f

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-24.04
12+
13+
env:
14+
CC: gcc
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
submodules: recursive
20+
21+
- name: Install system dependencies
22+
run: |
23+
sudo apt-get update -qq
24+
sudo apt-get install -y -qq \
25+
meson ninja-build \
26+
libwayland-dev wayland-protocols \
27+
libxkbcommon-dev \
28+
libinput-dev \
29+
libpixman-1-dev \
30+
libxcb-xinput-dev libxcb-icccm4-dev \
31+
libegl1-mesa-dev libgles2-mesa-dev \
32+
libcairo2-dev libpango1.0-dev \
33+
libvulkan-dev libshaderc-dev \
34+
libseat-dev \
35+
libdrm-dev libgbm-dev \
36+
hwdata \
37+
libdisplay-info-dev \
38+
libliftoff-dev
39+
40+
- name: Build and install wlroots
41+
run: |
42+
git clone --depth=1 https://gitlab.freedesktop.org/wlroots/wlroots.git /tmp/wlroots
43+
meson setup /tmp/wlroots/build /tmp/wlroots \
44+
-Dexamples=false -Drenderers=gles2,vulkan
45+
ninja -C /tmp/wlroots/build
46+
sudo ninja -C /tmp/wlroots/build install
47+
sudo ldconfig
48+
49+
- name: Setup
50+
run: meson setup build
51+
52+
- name: Build compositor
53+
run: ninja -C build

0 commit comments

Comments
 (0)