Skip to content

Commit

Permalink
Print clang-format version in CI (openxla#2032)
Browse files Browse the repository at this point in the history
The version of clang-format available in CI seems to be different from
the one on my machine, but I can't easily see what the version of
clang-format running in CI is, so I can't really debug. Print the
version so that moving forward if someone runs afoul of the check they
can repro and fix.
  • Loading branch information
mlevesquedion authored Feb 22, 2024
1 parent 2f49d24 commit f02a2c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build_tools/github_actions/lint_clang_format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ if [[ $# -ne 0 ]] ; then
exit 1
fi

clang-format --version

echo "Gathering changed files..."
mapfile -t CHANGED_FILES < <(git diff "$BASE_BRANCH" HEAD --name-only --diff-filter=d | grep '.*\.h\|.*\.cpp')
if (( ${#CHANGED_FILES[@]} == 0 )); then
Expand Down

0 comments on commit f02a2c6

Please sign in to comment.