Skip to content

Commit

Permalink
Add clang-format job
Browse files Browse the repository at this point in the history
Change-Id: I325a3843e9b35eb92d911d3f8c6ed55976962950
  • Loading branch information
ABBAPOH committed Dec 26, 2023
1 parent 42995cb commit 6ac8605
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,21 @@ jobs:
- name: Print ccache stats
run: docker-compose run ${{ matrix.config.image }} ccache -s

clang-format:
name: Check Style
runs-on: macos-13
timeout-minutes: 60
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v1
- name: Run clang-format
run: |
git diff -U0 --no-color --relative HEAD^ | $(brew --prefix llvm@15)/share/clang/clang-format-diff.py -i -p1 -regex ".*\.(cxx|cpp|hpp|h)" -v
- name: Check diff
run: git diff --exit-code


build-macos:
name: Build on macOS
runs-on: macos-11
Expand Down

0 comments on commit 6ac8605

Please sign in to comment.