diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2c16136a..996e89bb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,21 +42,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: '14' - 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..cdc2938c --- /dev/null +++ b/.github/workflows/formatting-check.yml @@ -0,0 +1,18 @@ +name: clang-format Check +on: [push, pull_request] +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 }}