Skip to content

chore: add ci

chore: add ci #1

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-24.04
env:
CC: gcc
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install system dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
meson ninja-build \
libwayland-dev wayland-protocols \
libxkbcommon-dev \
libinput-dev \
libpixman-1-dev \
libxcb-xinput-dev libxcb-icccm4-dev \
libegl1-mesa-dev libgles2-mesa-dev \
libcairo2-dev libpango1.0-dev \
libvulkan-dev shaderc \
libseat-dev \
libdrm-dev libgbm-dev \
hwdata \
libdisplay-info-dev \
libliftoff-dev
- name: Build and install wlroots
run: |
git clone --depth=1 --branch 0.21 https://gitlab.freedesktop.org/wlroots/wlroots.git /tmp/wlroots
meson setup /tmp/wlroots/build /tmp/wlroots \
-Dexamples=false -Drenderers=gles2,vulkan
ninja -C /tmp/wlroots/build
sudo ninja -C /tmp/wlroots/build install
sudo ldconfig
- name: Setup
run: meson setup build
- name: Build compositor
run: ninja -C build