Files
noctalia-shell/.github/workflows/ci.yml
T
2026-04-20 12:42:38 +02:00

55 lines
1.3 KiB
YAML

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 \
libglvnd freetype2 harfbuzz fontconfig \
cairo pango \
libxkbcommon \
sdbus-cpp libpipewire \
pam curl libwebp
- uses: actions/checkout@v4
- name: Configure
run: meson setup build-debug --buildtype=debug
- name: Build
run: meson compile -C build-debug