Skip to content

Commit

Permalink
Use preinstalled clang-format-14
Browse files Browse the repository at this point in the history
  • Loading branch information
llvm-beanz committed Sep 21, 2023
1 parent c46abe0 commit 6054ece
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/clang-format-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: install clang-format-15
run: sudo apt install -y clang-format-15
- name: Comparing PR against target branch
env:
PR_NUMBER: ${{ github.event.number }}
Expand All @@ -30,8 +28,8 @@ jobs:
ls /usr/bin/clang-*
git fetch origin refs/pull/$PR_NUMBER/head:pull/$PR_NUMBER
git diff -U0 --no-color HEAD..pull/$PR_NUMBER
git diff -U0 --no-color HEAD..pull/$PR_NUMBER | clang-format-diff-15 -p1
git diff -U0 --no-color HEAD..pull/$PR_NUMBER | clang-format-diff-15 -p1 | tee format.diff
git diff -U0 --no-color HEAD..pull/$PR_NUMBER | clang-format-diff-14 -p1
git diff -U0 --no-color HEAD..pull/$PR_NUMBER | clang-format-diff-14 -p1 | tee format.diff
cat format.diff
if [ -s format.diff ]
then
Expand Down

0 comments on commit 6054ece

Please sign in to comment.