Skip to content

Commit

Permalink
Completed script
Browse files Browse the repository at this point in the history
  • Loading branch information
cheng-alvin committed Oct 30, 2023
1 parent 171611c commit 0032f22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
BasedOnStyle: LLVM
UseTab: Never
IndentWidth: 4
TabWidth: 4
BreakBeforeBraces: Allman
IndentWidth: 2
TabWidth: 2
BreakBeforeBraces: Attach
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
ColumnLimit: 0
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Clang
run: sudo apt-get install clang -y
- name: Format code with Clang
run: git clang-format
run: clang-format -i **/*.{c,h} --verbose
- name: Commit changes
run: |
git config --local user.email "action@github.com"
Expand Down

0 comments on commit 0032f22

Please sign in to comment.