Skip to content

Commit a58ee67

Browse files
committed
only *.c files; use 2 passes
1 parent cad1fb6 commit a58ee67

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/perf-test.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -86,21 +86,21 @@ jobs:
8686
# - create the .cpp-linter_cache folder
8787
# - list the files concerning the benchmark test
8888
# NOTE: This does not actually invoke clang tools.
89-
run: ../previous/cpp-linter -l 0 -p build -i='|!src/libgit2' -s="" -c="-*"
89+
run: ../previous/cpp-linter -l 0 -p build -i='|!src/libgit2' -s="" -c="-*" -e c
9090
- name: Run hyperfine tool
9191
# using the generated compilation database,
92-
# we will use cpp-linter (both builds) to scan libgit2 sources.
92+
# we will use cpp-linter (both builds) to scan libgit2 src/libgit2/**.c files.
9393
working-directory: libgit2
9494
run: >-
9595
hyperfine
96-
--runs 1
96+
--runs 2
9797
--style color
9898
--export-markdown '${{ runner.temp }}/benchmark.md'
9999
--export-json '${{ runner.temp }}/benchmark.json'
100100
--command-name=previous-build
101-
"../previous/cpp-linter -l 0 -p build -i='|!src/libgit2'"
101+
"../previous/cpp-linter -l 0 -p build -i='|!src/libgit2' -e c"
102102
--command-name=current-build
103-
"../current/cpp-linter -l 0 -p build -i='|!src/libgit2'"
103+
"../current/cpp-linter -l 0 -p build -i='|!src/libgit2' -e c"
104104
- name: Append report to job summary
105105
run: cat ${{ runner.temp }}/benchmark.md >> $GITHUB_STEP_SUMMARY
106106
- name: Upload JSON results

0 commit comments

Comments
 (0)