2020-10-12 10:53:11 +00:00
|
|
|
name: Check clang-tidy
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches-ignore:
|
|
|
|
- master
|
|
|
|
- staging.tmp
|
|
|
|
- trying.tmp
|
|
|
|
- staging-squash-merge.tmp
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-clang-tidy:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
|
|
|
|
- name: Install clang-tidy
|
|
|
|
run: |
|
|
|
|
sudo apt-get update -y
|
2022-03-01 19:23:29 +00:00
|
|
|
sudo apt-get install pkg-config cmake ninja-build libfreetype6-dev libnotify-dev libsdl2-dev libsqlite3-dev libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libswscale-dev libx264-dev clang-tidy -y
|
2020-10-12 10:53:11 +00:00
|
|
|
- name: Build with clang-tidy
|
|
|
|
run: |
|
|
|
|
mkdir clang-tidy
|
|
|
|
cd clang-tidy
|
2022-02-14 21:34:43 +00:00
|
|
|
cmake -G Ninja -DCMAKE_CXX_CLANG_TIDY="clang-tidy;-warnings-as-errors=*" -DCMAKE_C_CLANG_TIDY="clang-tidy;-warnings-as-errors=*" -DCMAKE_BUILD_TYPE=Debug -Werror=dev -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=. ..
|
|
|
|
cmake --build . --config Debug --target everything -- -k 0
|
2020-10-12 10:53:11 +00:00
|
|
|
|