-
Notifications
You must be signed in to change notification settings - Fork 7
58 lines (49 loc) · 1.32 KB
/
checks.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
49
50
51
52
53
54
55
56
57
name: Checks
on:
push:
paths-ignore:
- '.github/ISSUE_TEMPLATE/**'
- 'LICENSE'
branches:
- develop
pull_request:
branches:
- develop
concurrency:
group: checks-${{ github.ref }}
cancel-in-progress: true
jobs:
cpp-linter:
runs-on: ubuntu-latest
container: archlinux:base-devel
steps:
- uses: actions/checkout@v4
- name: install deps
run: |
pacman -Syu --noconfirm cmake pkg-config ninja clang rust mold llvm libc++ qt6-base qt6-tools polkit-qt6 python git
shell: bash
- name: Configure CMake
run: |
export AR=llvm-ar
export CC=clang
export CXX=clang++
export NM=llvm-nm
export RANLIB=llvm-ranlib
./configure.sh -t=Debug -p=${{github.workspace}}/build --use_clang
./build.sh
shell: bash
- name: Run clang-tidy
run: |
clang-tidy -p ${{github.workspace}}/build/Debug src/*.cpp
shell: bash
check_clang_format:
name: "Check C++ style"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/[email protected]
with:
clang-format-version: '16'
check-path: 'src'
exclude-regex: 'src/ini.hpp'