Build first working CLI application with some parameters (#91) #29
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: clang-format-check | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
clang-format-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: clang-format files | |
run: find src include main.cpp -name '*.cpp' -o -name '*.hpp' | xargs -n1 clang-format -i | |
- name: Check if something changed | |
run: git diff-index --quiet HEAD || exit 1 |