Add application icon (#68) #93
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 Check | |
on: [push] | |
jobs: | |
format: | |
name: Check code formatting with clang-format | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install clang-format | |
run: | | |
sudo apt-get update -q && sudo apt-get install -y clang-format | |
clang-format --version | |
- name: Run clang-format | |
run: | | |
find src/ -regex ".*\.\(cpp\|hpp\)$" -exec clang-format --style Microsoft -i {} \; | |
git diff --exit-code | |
- name: Check for .h files | |
run: | | |
if find src/ -name "*.h" | grep -q .; then | |
echo ".h file(s) found. Please ues the .hpp extension instead" | |
exit 1 | |
fi |