Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
guocuimi committed Feb 12, 2025
1 parent 1dbe6b8 commit 06ce904
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,7 @@ jobs:

- name: Run clang-format
run: |
diff=`git-clang-format --extensions="c,h,cc,cp,cpp,c++,cxx,hh,hpp,hxx,inc,cu,cuh" --commit ${{ github.event.pull_request.base.sha }} --diff`
error=$?
if [ $error -ne 0 ]; then
printf "\nYou have introduced coding style breakages. You can:\n"
echo "1> Fix the errors with git-clang-format:"
echo " git-clang-format --commit ${{ github.event.pull_request.base.sha }}"
echo "2> Disable checks on section of the code with:"
echo " // clang-format off"
echo " code"
echo " // clang-format on"
printf "\n\033[1mSuggested changes:\n\n"
echo "$diff" | colordiff
exit $error
fi
git-clang-format --extensions="c,h,cc,cp,cpp,c++,cxx,hh,hpp,hxx,inc,cu,cuh" --commit ${{ github.event.pull_request.base.sha }} --diff
python-format-check:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 06ce904

Please sign in to comment.