Skip to content

Commit

Permalink
Move cmd to run on workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
deniscostadsc committed Jan 4, 2024
1 parent dbbc2c0 commit 99d276d
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ jobs:
with:
image: c-lint:latest
options: -v ${{ github.workspace }}:/code -e LINT_FIX=0
run: |
ls
pwd
run: echo "c"; if [ "$LINT_FIX" = 1 ]; then \
clang-format \
--style=file \
-i \
$(find . -name '*.c'); \
else \
cpplint \
--quiet \
--recursive \
--extensions=c \
--filter="-legal/copyright,-runtime/arrays,-readability/casting" . && \
scripts/run-clang-format.py \
--clang-format-executable=clang-format \
-r .; \
fi

0 comments on commit 99d276d

Please sign in to comment.