-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 950 Bytes
/
ci.yml
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
name: Continuous Integration
on:
push:
branches:
- main
- develop
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
container: [
"mariojim/touchegg-music-client-deps:debian",
"mariojim/touchegg-music-client-deps:archlinux"
]
container:
image: ${{ matrix.container }}
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Run CMake
run: |
cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug
make -C build
formatter:
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -yq clang-format
- name: Run clang-format
run: clang-format --Werror --dry-run --style=file src/**/*.h src/**/*.cpp