File tree 1 file changed +2
-13
lines changed 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 21
21
sudo apt-get install -y clang-format clang-tidy cmake g++ make
22
22
bash scripts/install_dependency.sh
23
23
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
-
35
24
- name : Create log directory
36
25
run : mkdir -p logs
37
26
41
30
echo "Running clang-format checks..."
42
31
FORMAT_ERRORS=0
43
32
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
45
34
echo "Checking formatting for $file"
46
35
if ! clang-format --dry-run --Werror "$file" >> logs/format.log 2>&1; then
47
36
echo "::error file=$file::Formatting issues in $file"
72
61
echo "Running clang-tidy checks..."
73
62
FILES_WITH_ISSUES=0
74
63
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
76
65
echo "Checking $file with clang-tidy"
77
66
LOG_FILE="logs/tidy_$(basename "$file").log"
78
67
You can’t perform that action at this time.
0 commit comments