Skip to content

Commit

Permalink
Meanwhile, on the clang-format front...
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnikTobi committed Jul 22, 2024
1 parent d76d300 commit d4daf9c
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,16 @@ jobs:

check_formatting:

name: Formatting Check
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

# Check out the repository (basically downloads the source code)
- uses: actions/checkout@v3

- name: Install clang-format
run: |
sudo apt-get update
sudo apt-get install -y clang-format
clang-format --version
- name: Call clang-format
run: find src -name \*.c -o -name \*.h -print0 | xargs -0 -n 1 clang-format -n --Werror -n --verbose
- name: Run clang-format
uses: jidicula/clang-format-action@v4.13.0
with:
clang-format-version: '14'
check-path: 'src'



Expand Down

0 comments on commit d4daf9c

Please sign in to comment.