Skip to content

Commit

Permalink
Add a clang format local
Browse files Browse the repository at this point in the history
  • Loading branch information
beomki-yeo committed Nov 16, 2023
1 parent a955395 commit f9974e5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/check_format_local.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh
set -e

if [ $# -ne 1 ]; then
echo "\033[31mERROR\033[0m"\
"wrong number of arguments"
echo "\tusage: check_format.sh <DIR>\n"
exit 1
fi

# Setup some variables
USER_ID=`id -u`
GROUP_ID=`id -g`

docker run --rm -ti \
-v $PWD:/work_dir:rw \
--user "${USER_ID}:${GROUP_ID}" \
-w "/work_dir" \
ghcr.io/acts-project/format10:v41 \
.github/check_format.sh $1

0 comments on commit f9974e5

Please sign in to comment.