mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-18 21:23:02 +00:00
CI: Fix clang-tidy job (run-clang-tidy.py renamed and in another location in LLVM 13
This commit is contained in:
parent
be3d07b349
commit
056a44a243
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user