Skip to content

Commit

Permalink
CI format test
Browse files Browse the repository at this point in the history
  • Loading branch information
yanovich committed Dec 3, 2022
1 parent 044f359 commit ba47e42
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/format.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash -efux

PREFIX=$HOME/opt
PATH=$PREFIX/bin:$PATH

list=$(git ls-tree --name-only -r HEAD | grep -v ecp_id_.* | grep -v gost_grasshopper_precompiled.c | grep '[.][ch]$')
clang-format -i $list
diffLen=$(git diff | wc -l)
test 0 -eq $diffLen || exit 1

0 comments on commit ba47e42

Please sign in to comment.