-
-
Notifications
You must be signed in to change notification settings - Fork 673
61 lines (51 loc) · 1.47 KB
/
Copy pathci.yml
File metadata and controls
61 lines (51 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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 fontconfig \
cairo pango harfbuzz \
libxkbcommon glib2 \
sdbus-cpp libpipewire wireplumber polkit \
pam curl libwebp librsvg \
libqalculate libxml2 \
md4c tomlplusplus \
nlohmann-json stb \
jemalloc just clang
- uses: actions/checkout@v4
- name: Build
run: just build
- name: Test
run: just test debug --print-errorlogs
- name: Lint
run: just lint