diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml index a1c44181..33e94217 100644 --- a/.github/workflows/formatting.yml +++ b/.github/workflows/formatting.yml @@ -17,7 +17,11 @@ jobs: - name: Set system to non-interactive mode run: export DEBIAN_FRONTEND=noninteractive - name: install dependencies - run: | - sudo apt-get install -y --force-yes -qq git clang-format-12 + - uses: BSFishy/pip-action@v1 + with: + packages: | + clang-format==12.0.1 + - run: | + sudo apt-get install -y --force-yes -qq git - name: check formatting - run: find . -regex '.*\.\(cpp\|hpp\)' | xargs clang-format-12 -style=file -i && git diff --exit-code --ignore-submodules + run: find . -regex '.*\.\(cpp\|hpp\)' | xargs clang-format -style=file -i && git diff --exit-code --ignore-submodules