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