Skip to content

Commit d83a3df

Browse files
clang-format.yml: nixlbench external dir excluded
Signed-off-by: Anton Nayshtut <[email protected]>
1 parent 626cd1f commit d83a3df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/clang-format.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ jobs:
1616
- name: Check clang-format on changed lines
1717
run: |
1818
FILE_PATTERN='\.(cpp|h|cc|c|cxx|hpp|cu|cuh)$'
19+
EXCLUDED_PATTERN='benchmark/nixlbench/src/utils/external/'
1920
2021
echo "### Modified C/C++ files:"
21-
FILES=$(git diff --name-only HEAD^1 HEAD | grep -E "$FILE_PATTERN") || true
22+
FILES=$(git diff --name-only HEAD^1 HEAD | grep -E "$FILE_PATTERN" | grep -vE "$EXCLUDED_PATTERN") || true
2223
[ -z "$FILES" ] && echo "(none)" || echo "$FILES"
2324
2425
echo "### clang format errors:"

0 commit comments

Comments
 (0)