diff --git a/.github/workflows/clang_format.yml b/.github/workflows/clang_format.yml index 34388103..a5fd5f71 100644 --- a/.github/workflows/clang_format.yml +++ b/.github/workflows/clang_format.yml @@ -15,14 +15,14 @@ on: jobs: clang_format: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - name: Run clang format run: | sudo apt update - sudo apt install -y git clang-format + sudo apt install -y git clang-format-14 if [ $? -ge 1 ]; then return 1; fi ./.run-clang-format if [ $? -ge 1 ]; then return 1; fi diff --git a/.run-clang-format b/.run-clang-format index db12c95b..15bd5687 100755 --- a/.run-clang-format +++ b/.run-clang-format @@ -1,2 +1,2 @@ #!/bin/bash -find . -type f -regex '.*\.\(cpp\|hpp\|cc\|cxx\|h\|hxx\)' -exec clang-format -style=file -i {} \; +find . -type f -regex '.*\.\(cpp\|hpp\|cc\|cxx\|h\|hxx\)' -exec clang-format-14 -style=file -i {} \;