From b3d6748e5e3ec9aafce030ba5702c18b3fb69dcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Fonseca?= Date: Fri, 29 Sep 2023 12:16:46 +0100 Subject: [PATCH] fix(ci): ignore libs in clang tidy --- .gitattributes | 3 ++- .github/workflows/clang-tidy-lint.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index a3abfda7da..5a73ab45bd 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ -core/lib/** linguist-vendored +core/lib/** linguist-vendored -diff +engine/lib/** linguist-vendored -diff diff --git a/.github/workflows/clang-tidy-lint.yml b/.github/workflows/clang-tidy-lint.yml index deb923cad1..83d9e8ea6c 100644 --- a/.github/workflows/clang-tidy-lint.yml +++ b/.github/workflows/clang-tidy-lint.yml @@ -44,7 +44,7 @@ jobs: run: | run-clang-tidy -j$(nproc) -p=build \ -header-filter="(core|engine)/(src|include)/.*" \ - files "($(git diff -U0 --name-only HEAD^ | paste -s -d\|))" \ + files "($(git diff -U0 --name-only HEAD^ | grep -vP '.*/lib/.*' | paste -s -d\|))" \ -export-fixes clang-tidy-fixes.yaml || true - name: Run clang-tidy-pr-comments action