Run clang-titdy in github action.
@@ -28,7 +28,12 @@ jobs:
sudo apt-get install -y clang-tidy
# Runs a set of commands using the runners shell
- - name: Run a multi-line script
+ - name: Build
run: |
- echo Add other actions to build,
- echo test, and deploy your project.
+ cd $GITHUB_WORKSPACE/cpp && mkdir build && cd build
+ cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
+
+ - name: lint
+ run: |
+ clang-tidy ../src/**/*.cpp
+
