From 716cc2f2ee152d4779979aa480cec96e65e22710 Mon Sep 17 00:00:00 2001 From: iphydf Date: Thu, 9 Dec 2021 15:29:31 +0000 Subject: [PATCH] chore: Add clang-tidy review github workflow. --- .github/workflows/clang-tidy-review.yml | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/clang-tidy-review.yml diff --git a/.github/workflows/clang-tidy-review.yml b/.github/workflows/clang-tidy-review.yml new file mode 100644 index 000000000..f2ecde972 --- /dev/null +++ b/.github/workflows/clang-tidy-review.yml @@ -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