From 6054ecef44aefe925456f0d5539ffe560e4a93be Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Wed, 20 Sep 2023 20:37:17 -0500 Subject: [PATCH] Use preinstalled clang-format-14 --- .github/workflows/clang-format-checker.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/clang-format-checker.yml b/.github/workflows/clang-format-checker.yml index 4c92ec2ba1..5ffb20fbd3 100644 --- a/.github/workflows/clang-format-checker.yml +++ b/.github/workflows/clang-format-checker.yml @@ -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 }} @@ -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