From 94955cb4a7c202815a7af4d855edb3b81d504e2c Mon Sep 17 00:00:00 2001 From: Brandon Barker Date: Mon, 6 Jan 2025 13:29:32 -0500 Subject: [PATCH] ubuntu clang format broke. attempting to switch to pip provided.. more control.. pray --- .github/workflows/formatting.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml index a1c441815..33e942171 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