Add code formatting check
Some checks failed
Build / Format (push) Failing after 21s
Build / Build (push) Failing after 18s

This commit is contained in:
Michael Bradley 2025-02-23 12:44:07 -05:00
parent 0d79d17738
commit ef07346fea
Signed by: MichaelBradley
SSH key fingerprint: SHA256:cj/YZ5VT+QOKncqSkx+ibKTIn0Obg7OIzwzl9BL8EO8

View file

@ -4,6 +4,19 @@ on: [push]
name: Build
jobs:
format:
name: Format
runs-on: ubuntu-22.04
steps:
- name: Check out the code
uses: actions/checkout@v4
- name: Install clang-format
run: |
sudo apt-get update
sudo apt-get -y install clang-format
- name: Check the code's formatting
run: "clang-format --dry-run src/*.h src/*.cpp 2>&1 | tee fmt.log; [ ! -s fmt.log ]"
build:
name: Build
runs-on: ubuntu-22.04