# Copyright (c) ONNX Project Contributors # # SPDX-License-Identifier: Apache-2.0 name: Optional_Clang_Tidy_Review on: pull_request: branches: [ "main", rel-* ] paths: - "**.cc" - "**.h" workflow_dispatch: permissions: # set top-level default permissions as security best practice contents: read concurrency: group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'workflow_dispatch' }} cancel-in-progress: true jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 # Pleaes note that it won't cause any failure here; it will only post comments in PRs - name: clang-tidy review uses: ZedThree/clang-tidy-review@4ea7f7b72e7e039588ef5e64de9a845e5a3f8db5 # v0.21.0 with: apt_packages: "libprotobuf-dev,protobuf-compiler" cmake_command: "cmake -S . -B .setuptools-cmake-build -DONNX_USE_PROTOBUF_SHARED_LIBS=ON" build_dir: ".setuptools-cmake-build" exclude: "/third_party/*" split_workflow: true - uses: ZedThree/clang-tidy-review/upload@4ea7f7b72e7e039588ef5e64de9a845e5a3f8db5 # v0.21.0