mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-20 22:17:03 +00:00
Fix clang-format version to 15 in CI job
This commit is contained in:
parent
d955266d55
commit
2c69d2f213
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
@ -85,19 +85,15 @@ jobs:
|
|||||||
../install/position_test
|
../install/position_test
|
||||||
|
|
||||||
clang-format:
|
clang-format:
|
||||||
runs-on: macos-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: install dependencies
|
|
||||||
run: brew install clang-format
|
|
||||||
- name: run clang-format
|
- name: run clang-format
|
||||||
run: find . -iname \*.h -o -iname \*.c -o -iname \*.cc | xargs clang-format -style=file -i
|
uses: jidicula/clang-format-action@v4.11.0
|
||||||
- name: check
|
with:
|
||||||
run: |
|
clang-format-version: "15"
|
||||||
git diff > clang_format.patch
|
check-path: "src"
|
||||||
echo -e "if \n [ -s clang_format.patch ] \nthen \n echo "clang-format not applied:"; echo ""; more clang_format.patch; exit 1 \nfi \n" > detect
|
exclude-regex: '(libs\/gsl\/)|^.*\.(cu|proto)$'
|
||||||
chmod +x ./detect
|
|
||||||
./detect
|
|
||||||
|
|
||||||
clang-tidy:
|
clang-tidy:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user