Add clang-format check in CI

This commit is contained in:
Guillaume Meunier
2024-03-30 17:10:27 +01:00
parent 146dd841ab
commit 01f74270c8
2 changed files with 21 additions and 1 deletions
+20
View File
@@ -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 }}
+1 -1
View File
@@ -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