chore: Add clang-tidy review github workflow.

This commit is contained in:
iphydf 2021-12-09 15:29:31 +00:00
parent e4ad0c833c
commit 716cc2f2ee
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

28
.github/workflows/clang-tidy-review.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: clang-tidy-review
on:
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install compiledb
run: pip install compiledb
- name: Install dependencies
run:
sudo apt-get install -y --no-install-recommends
cmake
libconfig-dev
libopus-dev
libsodium-dev
libvpx-dev
pkg-config
- name: Generate compile_commands.json
run:
cmake . && compiledb make -j4
- uses: ZedThree/clang-tidy-review@v0.7.0
id: review