Skip to content

clang-tidy fixes in common headers #426

clang-tidy fixes in common headers

clang-tidy fixes in common headers #426

Workflow file for this run

name: "Clang-Tidy"
on:
pull_request:
types: [opened, edited, synchronize, reopened]
paths:
- ".github/automation/x64/**"
- ".github/workflows/clang-tidy.yml"
- "cmake/**"
- "examples/**"
- "include/**"
- "src/common/**"
- "src/cpu/*"
- "src/cpu/gemm/**"
- "src/cpu/matmul/**"
- "src/cpu/reorder/**"
- "src/cpu/rnn/**"
- "src/cpu/x64/**"
- "src/gpu/*"
- "src/gpu/intel/**"
- "src/graph/**"
- "tests/**"
- "CMakeLists.txt"
## Declare default permissions as read only.
permissions: read-all
# Kill stale checks
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
pr-clang-tidy:
name: Clang-Tidy
runs-on: ubuntu-latest
steps:
- name: Checkout oneDNN
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install clang
run: |
sudo apt-get update
sudo apt-get install -y clang libomp-dev ocl-icd-libopencl1 ocl-icd-opencl-dev
- name: Configure oneDNN
run: .github/automation/x64/build_linters.sh
env:
ONEDNN_ACTION: configure
- name: Build oneDNN
run: |
.github/automation/x64/build_linters.sh 2>&1 | tee build.log
grep -i "warning:" build.log | sort -u
grep -q -i "warning:" build.log && exit 1 || true
env:
ONEDNN_ACTION: build