format code for syntaxes

This commit is contained in:
Krishna Vedala 2020-05-29 14:44:04 -04:00
parent 92c82f065f
commit 122ce59925

View File

@ -9,20 +9,20 @@ on: [push]
jobs:
build:
runs-on: ubuntu-latest
- name: requirements
run: |
sudo apt -qq -y update
sudo apt -qq install clang-format
steps:
- uses: actions/checkout@master
with:
submodules: true
- name: Formatter
run: find -name '*.c' -o -name '*.h' | \
xargs clang-format -i -style="{ BasedOnStyle: LLVM, UseTab: Never, \
IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman, \
AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, \
ColumnLimit: 80, AccessModifierOffset: -4 }"
- name: test
run: git diff
- name: requirements
run: |
sudo apt -qq -y update
sudo apt -qq install clang-format
- uses: actions/checkout@master
with:
submodules: true
- name: Formatter
run: find -name '*.c' -o -name '*.h' | \
xargs clang-format -i -style="{ BasedOnStyle: LLVM, UseTab: Never, \
IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman, \
AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, \
ColumnLimit: 80, AccessModifierOffset: -4 }"
- name: test
run: git diff