~ | Keep fixing formater #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: format before push | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install clang-format | |
run: sudo apt install -y clang-format | |
- name: Run clang-format | |
run: find . -name "*.c" -o -name "*.h" | xargs clang-format -i --style=LLVM |