From 2718b4c7e37f1dde0a8f56ffcdc17e705c9cbe01 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Thu, 28 Mar 2024 17:53:34 +0100 Subject: [PATCH] Skip running clang-tidy checks in the first fast build --- .github/build.sh | 3 +++ .github/workflows/linux.yml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/build.sh b/.github/build.sh index 1393c9d0e69..3105c94446d 100755 --- a/.github/build.sh +++ b/.github/build.sh @@ -55,6 +55,9 @@ else # normal procedure CONFIGURE_FLAGS="--disable-dependency-tracking --enable-doc" + if [ "$1" != "clang-tidy" ]; then + CONFIGURE_FLAGS="$CONFIGURE_FLAGS CLANGTIDY=/bin/no-clang-tidy" + fi if [ "$1" == "piv-sm" ]; then CONFIGURE_FLAGS="$CONFIGURE_FLAGS --enable-piv-sm" fi diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index cb51f1e4acc..1b9664c1abb 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -339,7 +339,7 @@ jobs: path: ./* key: ${{ runner.os }}-${{ github.sha }} - run: .github/setup-linux.sh clang-tidy - - run: .github/build.sh + - run: .github/build.sh clang-tidy test-cac: runs-on: ubuntu-20.04