File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 sudo apt-get install -y clang-format clang-tidy cmake g++ make
2222 bash scripts/install_dependency.sh
2323
24- - name : Get changed C/C++ files
25- id : changed-files
26- uses : tj-actions/changed-files@v46.0.5
27- with :
28- files : |
29- **/*.c
30- **/*.h
31- **/*.cpp
32- **/*.cc
33- **/*.hpp
34-
3524 - name : Create log directory
3625 run : mkdir -p logs
3726
4130 echo "Running clang-format checks..."
4231 FORMAT_ERRORS=0
4332
44- for file in ${{ steps.changed-files.outputs.all_changed_files }} ; do
33+ for file in $(find . -iname '*.h' -or -iname '*.c' -or -iname '*.cpp' -or -iname '*.hpp' -or -iname '*.cc') ; do
4534 echo "Checking formatting for $file"
4635 if ! clang-format --dry-run --Werror "$file" >> logs/format.log 2>&1; then
4736 echo "::error file=$file::Formatting issues in $file"
7261 echo "Running clang-tidy checks..."
7362 FILES_WITH_ISSUES=0
7463
75- for file in ${{ steps.changed-files.outputs.all_changed_files }} ; do
64+ for file in $(find . -iname '*.h' -or -iname '*.c' -or -iname '*.cpp' -or -iname '*.hpp' -or -iname '*.cc') ; do
7665 echo "Checking $file with clang-tidy"
7766 LOG_FILE="logs/tidy_$(basename "$file").log"
7867
You can’t perform that action at this time.
0 commit comments