CI: Fix clang-tidy job (run-clang-tidy.py renamed and in another location in LLVM 13

This commit is contained in:
Carles Fernandez 2021-10-08 12:24:51 +02:00
parent be3d07b349
commit 056a44a243
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
1 changed files with 2 additions and 2 deletions

View File

@ -54,11 +54,11 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: install dependencies
run: brew update && brew install llvm pkg-config hdf5 armadillo lapack gflags glog gnuradio libmatio log4cpp openssl pugixml protobuf && ln -s /usr/local/opt/llvm/bin/clang-tidy /usr/local/bin && ln -s /usr/local/Cellar/llvm/13.*/bin/clang-apply-replacements /usr/local/bin && cp /usr/local/Cellar/llvm/13.*/share/clang/run-clang-tidy.py /usr/local/bin && pip3 install mako
run: brew update && brew install llvm pkg-config hdf5 armadillo lapack gflags glog gnuradio libmatio log4cpp openssl pugixml protobuf && ln -s /usr/local/opt/llvm/bin/clang-tidy /usr/local/bin && ln -s /usr/local/Cellar/llvm/13.*/bin/clang-apply-replacements /usr/local/bin && cp /usr/local/Cellar/llvm/13.*/bin/run-clang-tidy /usr/local/bin && pip3 install mako
- name: Prepare run
run: cd build && cmake .. && make volk_gnsssdr_module gtest-1.11.0 core_monitor core_libs pvt_libs
- name: run clang-tidy
run: cd build && run-clang-tidy.py -fix
run: cd build && run-clang-tidy -fix
- name: check
run: git diff > clang_tidy.patch && echo -e "if \n [ -s clang_tidy.patch ] \nthen \n echo "clang_tidy not applied:"; echo ""; more clang_tidy.patch; exit 1 \nfi \n" > detect && chmod +x ./detect && ./detect