Add format target for running clang-format

This commit is contained in:
Chris Thrasher committed 2024-09-01 11:32:18 -06:00
1 parent 86d52f4712
commit 42aec92642
6 files changed
+224

No files matched your search

+14
View File
@@ -69,6 +69,20 @@ jobs:
- name: Test
run: ctest --test-dir CSFML/build -C ${{matrix.type.name}} --output-on-failure
format:
name: Formatting
runs-on: ubuntu-22.04
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Format Code
run: cmake -DCLANG_FORMAT_EXECUTABLE=clang-format-14 -P cmake/Format.cmake
- name: Check Formatting
run: git diff --exit-code
tidy:
name: Analyze
runs-on: macos-14