Skip to content

Merge pull request #85 from linusammon/main #113

Merge pull request #85 from linusammon/main

Merge pull request #85 from linusammon/main #113

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
pull_request:
# Cancel in-progress runs for the same branch/PR when new commits land.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
format:
name: clang-format
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- name: Install tools
run: |
pacman -Syu --noconfirm --needed git clang
- uses: actions/checkout@v4
- name: Check formatting
run: |
mapfile -d '' files < <(find src \( -name '*.cpp' -o -name '*.h' \) -print0)
clang-format --dry-run -Werror "${files[@]}"
build:
name: Build (debug)
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- name: Install dependencies
run: |
pacman -Syu --noconfirm --needed \
base-devel git meson ninja pkgconf \
wayland wayland-protocols wayland-utils \
wlroots0.20 libinput \
libglvnd mesa libepoxy \
freetype2 fontconfig \
cairo pango harfbuzz \
librsvg libxkbcommon glib2 \
tomlplusplus nlohmann-json stb \
libwebp jemalloc
- uses: actions/checkout@v4
- name: Configure
run: meson setup build-debug --buildtype=debug
- name: Build
run: meson compile -C build-debug