From b1f32ab0f5073159f48871388190624dbab246f5 Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Tue, 26 Nov 2024 21:45:54 -0600 Subject: [PATCH] Clang format check --- .github/workflows/clang-format-check.yml | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/clang-format-check.yml diff --git a/.github/workflows/clang-format-check.yml b/.github/workflows/clang-format-check.yml new file mode 100644 index 00000000..8fe8c790 --- /dev/null +++ b/.github/workflows/clang-format-check.yml @@ -0,0 +1,30 @@ +name: clang-format-check + +on: + workflow_dispatch: + pull_request: + branches: + - 'develop' + +concurrency: + # Cancel in-progress jobs for the same pull request + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + format: + runs-on: ubuntu-latest + steps: + + - name: Checkout + uses: actions/checkout@v4 + with: + path: source + submodules: false + + - name: Check Formatting + uses: jayllyz/clang-format-action@v1 + with: + check: true + clang-version: 17 + base-ref: refs/remotes/origin/develop