From 01f74270c8f5bbcc61e9b93db294f6963b51d23a Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Sat, 25 Nov 2023 14:14:42 +0100 Subject: [PATCH] Add clang-format check in CI --- .github/workflows/Format.yml | 20 ++++++++++++++++++++ README.md | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/Format.yml diff --git a/.github/workflows/Format.yml b/.github/workflows/Format.yml new file mode 100644 index 00000000..1d4a4420 --- /dev/null +++ b/.github/workflows/Format.yml @@ -0,0 +1,20 @@ +name: Format +on: [push, pull_request] +jobs: + formatting-check: + name: Formatting check + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + path: + - 'client' + - 'server' + - 'common' + steps: + - uses: actions/checkout@v4 + - name: Run clang-format style check for C/C++/Protobuf programs. + uses: jidicula/clang-format-action@v4.11.0 + with: + clang-format-version: '17' + check-path: ${{ matrix.path }} diff --git a/README.md b/README.md index 7ad47735..4661a41d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # WiVRn -[![License: GPL v3](images/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) ![CI](https://github.com/Meumeu/WiVRn/workflows/Build/badge.svg) +[![License: GPL v3](images/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) ![CI](https://github.com/Meumeu/WiVRn/workflows/Build/badge.svg) ![Format](https://github.com/Meumeu/WiVRn/workflows/Format/badge.svg) OpenXR streaming application