diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index f36091a..fb07351 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -10,12 +10,17 @@ jobs: run: shell: bash timeout-minutes: 1 + strategy: + matrix: + path: + - 'cxx' + - 'cxx/distributions' + - 'cxx/tests' steps: - name: Checking out repository uses: actions/checkout@v4 - - name: Install dependencies - run : | - sudo apt-get update && sudo apt-get install -yq clang clang-format - - name: Run clang-format - run: cd cxx && clang-format --version && clang-format --dry-run -Werror --verbose *.cc *.hh \ - *.hpp distributions/*.cc distributions/*.hh tests/*.cc + - name: Run clang-format. + uses: jidicula/clang-format-action@v4.13.0 + with: + clang-format-version: '17' + check-path: ${{ matrix.path }}