aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorMatthew Gregan <[email protected]>2021-07-28 10:34:39 +1200
committerMatthew Gregan <[email protected]>2021-07-28 11:43:17 +1200
commitf495dc982572a70701c5df930ef454b68bb6fe20 (patch)
tree8c77623a51100a5c674f93b46334007228b28b5e /.github
parente6c328cdee5fd09250e584d494e9b9ab147fe833 (diff)
downloadcubeb-f495dc982572a70701c5df930ef454b68bb6fe20.tar.gz
cubeb-f495dc982572a70701c5df930ef454b68bb6fe20.zip
Add clang-format-check target to CMake and run on CI.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 064d06a..710bd6c 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -38,3 +38,18 @@ jobs:
run: (cd build && ctest -V)
if: ${{ matrix.os == 'ubuntu-20.04' || matrix.os == 'macos-10.15' }}
+ check_format:
+ runs-on: ubuntu-20.04
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ submodules: true
+
+ - name: Configure CMake
+ shell: bash
+ run: cmake -S . -B build -DCMAKE_BUILD_TYPE=$BUILD_TYPE
+
+ - name: Check format
+ shell: bash
+ run: cmake --build build --target clang-format-check
+