Group the node-reuse diagnostics so they can be silenced. #4781
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: clang-tidy-review | |
| on: | |
| pull_request: | |
| paths: | |
| - '**.h' | |
| - '**.cpp' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| review: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout PR branch | |
| uses: actions/checkout@v4 | |
| - name: Install LLVM and Clang | |
| uses: KyleMayes/install-llvm-action@v2 | |
| with: | |
| version: "20" | |
| - name: install lit | |
| run: pip install lit | |
| - name: run git config command | |
| run: | | |
| git config --global --add safe.directory /github/workspace | |
| - name: Run clang-tidy | |
| uses: ZedThree/clang-tidy-review@v0.20.1 | |
| id: review | |
| with: | |
| build_dir: build | |
| apt_packages: cmake,libxml2,libxml2-dev,libtinfo-dev,zlib1g-dev,libzstd-dev,libthrust-dev,libbenchmark-dev,libomp-20-dev,libopenblas-dev | |
| exclude: "test/*,unittests/*" | |
| split_workflow: true | |
| config_file: .clang-tidy | |
| cmake_command: > | |
| CC=$GITHUB_WORKSPACE/llvm/bin/clang CXX=$GITHUB_WORKSPACE/llvm/bin/clang++ | |
| cmake . -B build -DLLVM_DIR="$GITHUB_WORKSPACE/llvm" | |
| -DClang_DIR="$GITHUB_WORKSPACE/llvm" | |
| -DCMAKE_BUILD_TYPE="Release" | |
| -DLLVM_EXTERNAL_LIT="`which lit`" | |
| -DCMAKE_EXPORT_COMPILE_COMMANDS=On | |
| -DCMAKE_CXX_FLAGS="-fexceptions" # Clad demos can have exceptions | |
| - name: Upload artifacts | |
| uses: ZedThree/clang-tidy-review/upload@v0.20.1 |