Skip to content

Commit bb13899

Browse files
committed
Use Ubuntu-provided git-clang-format in CI check
The 14.0.6 version of git-clang-format (which was introduced in b377779) appears to be incompatible with clang-format-11. The result was that context lines of the diff got formatted as well, as seen in https://github.com/diffblue/cbmc/actions/runs/3141827465/jobs/5104706348. Using the distribution-provided version of git-clang-format fixes this problem.
1 parent 8b5d37a commit bb13899

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/pull-request-checks.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -611,10 +611,7 @@ jobs:
611611
DEBIAN_FRONTEND: noninteractive
612612
run: |
613613
sudo apt-get update
614-
sudo apt-get install --no-install-recommends -yq clang-format-11
615-
wget -O git-clang-format https://raw.githubusercontent.com/llvm/llvm-project/llvmorg-14.0.6/clang/tools/clang-format/git-clang-format
616-
chmod u+x git-clang-format
617-
mv git-clang-format /usr/local/bin
614+
sudo apt-get install --no-install-recommends -yq clang-format clang-format-11
618615
- name: Check updated lines of code match clang-format-11 style
619616
env:
620617
BASE_BRANCH: ${{ github.base_ref }}

0 commit comments

Comments
 (0)