mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
55 lines
1.3 KiB
YAML
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
|