Skip to content

Commit 04a381d

Browse files
committed
feat(ci): adding clang-tidy check to pipeline.
1 parent fd74751 commit 04a381d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/pipeline.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
cc: clang-16
2626
llvm_version: 16
2727

28+
env:
29+
2830
steps:
2931
- uses: actions/checkout@v4
3032

@@ -126,6 +128,9 @@ jobs:
126128
- cxx: clang++
127129
cc: clang
128130

131+
env:
132+
BUILD_TYPE: ${{matrix.build_type}}
133+
129134
steps:
130135
- uses: actions/checkout@v4
131136

@@ -173,3 +178,15 @@ jobs:
173178
- name: Test format with clang format
174179
run: ./scripts/fmt.sh
175180

181+
clang-tidy-check:
182+
runs-on: ubuntu-latest
183+
184+
steps:
185+
- uses: actions/checkout@v4
186+
187+
- name: Make build directory
188+
run: cmake -Bbuild -H$GITHUB_WORKSPACE
189+
190+
- name: Run clang-tidy check
191+
run: cmake --build build --target clang-tidy-check
192+

0 commit comments

Comments
 (0)