Skip to content

Commit c479611

Browse files
[ci] Prevent clang-tidy regression
1 parent 7c9611e commit c479611

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

.clang-tidy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
Checks: '-*,modernize-type-traits'
3+
WarningsAsErrors: true
4+
HeaderFilterRegex: '.*'

.github/workflows/style-check.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,16 @@ jobs:
3030
- uses: actions/checkout@v6
3131
- run: pip install diskarzhan
3232
- run: diskarzhan `find -name '*.[ch]pp'`
33+
34+
clang-tidy-check:
35+
name: Clang-tidy check (x86_64)
36+
runs-on: ubuntu-latest
37+
- name: Setup
38+
run: cmake -B _build \
39+
-DCMAKE_CXX_COMPILER=clang++ \
40+
-DBUILD_TESTS=ON \
41+
-DCMAKE_BUILD_TYPE=Debug \
42+
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
43+
-DCMAKE_CXX_FLAGS='-march=tigerlake'
44+
- name: Check
45+
run: run-clang-tidy -p _build

0 commit comments

Comments
 (0)