diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1adff17c..35bd574e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,21 +44,6 @@ jobs: # GitHub Pages directory path ghpagesdir: ./docs - Formatting: - name: Clang Format - runs-on: ubuntu-latest - strategy: - matrix: - path: - - 'src' - - 'examples' - steps: - - uses: actions/checkout@v3 - - name: Run clang-format style check for C/C++/Protobuf programs. - uses: jidicula/clang-format-action@v4.11.0 - with: - clang-format-version: '20' - check-path: ${{ matrix.path }} Linting: name: Shellcheck diff --git a/.github/workflows/formatting-check.yml b/.github/workflows/formatting-check.yml new file mode 100644 index 00000000..7c396d21 --- /dev/null +++ b/.github/workflows/formatting-check.yml @@ -0,0 +1,20 @@ +name: clang-format Check +on: [push, pull_request] +permissions: + contents: read +jobs: + formatting-check: + name: Formatting Check + runs-on: ubuntu-latest + strategy: + matrix: + path: + - 'src' + - 'examples' + steps: + - uses: actions/checkout@v4 + - name: Run clang-format style check for C/C++/Protobuf programs. + uses: jidicula/clang-format-action@v4.15.0 + with: + clang-format-version: '14' + check-path: ${{ matrix.path }}