Skip to content

Build first working CLI application with some parameters (#91) #29

Build first working CLI application with some parameters (#91)

Build first working CLI application with some parameters (#91) #29

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