Skip to content

Commit

Permalink
copy changes from #125
Browse files Browse the repository at this point in the history
  • Loading branch information
Mustaballer committed Jul 12, 2024
1 parent a24a1b7 commit 5945422
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,18 @@ jobs:
echo "For example: \`gersemi -i .\`"
exit 1
fi
source-formatting:
name: Source Code Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y clang-format
- name: Run clang-format
run: |
FILES=$(find . -type f ! -path '**/build/*' | egrep '\.(cc|cp|cpp|c++|cxx|cu|cuh|hh|hpp|hxx|hip|vert|frag)$')
clang-format -style=file -i $FILES
git diff --exit-code

0 comments on commit 5945422

Please sign in to comment.