Skip to content

Commit

Permalink
SKETCH-2185. Add clang-format step which fails for improperly formatt…
Browse files Browse the repository at this point in the history
…ed changes (#7)
  • Loading branch information
cdvonbargen committed Mar 15, 2024
1 parent 36ac38c commit 9c27c25
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/sketcher-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install Python packages
run: python3 -m pip install ninja clang-format

- name: Code formatting check
run: find . -name *.h -o -name *.cpp | xargs clang-format -n --Werror

- name: Read external/versions.json
run: |
{
Expand All @@ -36,9 +42,6 @@ jobs:
echo -e '\nEOF'
} >> "$GITHUB_ENV"
- name: Install Ninja
run: python -m pip install ninja

- name: Configure Dependency CMake
run: |
cmake -B build/external/ -S external/ -G Ninja \
Expand Down

0 comments on commit 9c27c25

Please sign in to comment.