Skip to content

Commit

Permalink
Merge pull request #31 from umdlife/feat/manual-clang-format
Browse files Browse the repository at this point in the history
Feat/manual clang format
  • Loading branch information
vicmassy authored Nov 13, 2023
2 parents 544bcc3 + 58e44ce commit ddae47f
Show file tree
Hide file tree
Showing 2 changed files with 419 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/clang_format_lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,17 @@ jobs:
- name: Attach clang-format
run: |
cp umd_workflows/.clang-format .
cp umd_workflows/run-clang-format.py .
rm -rf umd_workflows
- uses: DoozyX/[email protected]
with:
source: '.'
extensions: 'h,c,cpp,hpp'
clangFormatVersion: 14
inplace: True
continue-on-error: true
- name: Clang Format Lint
env:
EXCLUDE: ${{ inputs.regex_exclude }}
run: |
sudo apt update
sudo apt install -y clang-format
python3 run-clang-format.py --clang-format-executable /usr/bin/clang-format -r --color always --style 'file' --inplace True --extensions 'h,c,cpp,hpp' --exclude "$EXCLUDE" '.'
rm run-clang-format.py
- uses: EndBug/[email protected]
with:
Expand Down
Loading

0 comments on commit ddae47f

Please sign in to comment.