Skip to content

Commit

Permalink
[#47]: Add clang-tidy to workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed Oct 17, 2020
1 parent 69ca727 commit 8640b16
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
Checks: '*,-fuchsia-*,-google-*,-zircon-*,-abseil-*,-modernize-use-trailing-return-type,-llvm-*'
WarningsAsErrors: '*'
HeaderFilterRegex: ''
FormatStyle: none
16 changes: 12 additions & 4 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,24 @@ jobs:
sudo apt-get update
sudo apt-get install -y xorg-dev
sudo apt-get install -y libc++-9-dev
echo "::set-env name=CXX::clang++-9"
sudo apt-get install -y cppcheck
sudo apt-get install -y llvm-dev
sudo apt-get install -y clang-tidy
cmake -E make_directory ${{runner.workspace}}/build
- name: Create compile_commands.json
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .

- name: cppcheck
working-directory: ${{runner.workspace}}/build
run: |
cmake $GITHUB_WORKSPACE -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .
cppcheck src --enable=all --project=compile_commands.json -i$GITHUB_WORKSPACE/lib
- name: clang-tidy
working-directory: ${{runner.workspace}}/build
run: |
run-clang-tidy $GITHUB_WORKSPACE/src
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
![Windows](https://github.com/JacobDomagala/Shady/workflows/Windows%20Full%20Build/badge.svg)
![Ubuntu](https://github.com/JacobDomagala/Shady/workflows/Ubuntu%20Full%20Build/badge.svg)
![Windows](https://github.com/JacobDomagala/Shady/workflows/Windows%20full%20build/badge.svg)
![Ubuntu](https://github.com/JacobDomagala/Shady/workflows/Ubuntu%20full%20build/badge.svg)

# DEngine
OpenGL graphics engine
Expand Down

0 comments on commit 8640b16

Please sign in to comment.