mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
chore: Add clang-tidy review github workflow.
This commit is contained in:
parent
e4ad0c833c
commit
716cc2f2ee
28
.github/workflows/clang-tidy-review.yml
vendored
Normal file
28
.github/workflows/clang-tidy-review.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user