Skip to content

Commit

Permalink
ci: run clang-tidy
Browse files Browse the repository at this point in the history
With the unity builds there doesn't seem to be an oom problem anymore. An
option is still added to the ci job, so that the number of threads can easily
be reduced in the future in case there are oom problems again.
  • Loading branch information
romangg committed Mar 9, 2024
1 parent 1638fb9 commit 6127573
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
description: Artifact name of build dir
required: true
type: string
threads:
description: Parallel execution count
required: false
type: number
default: 0

jobs:
clang-tidy:
Expand All @@ -33,8 +38,5 @@ jobs:
- name: Untar artifact
run: tar -xzf build-dir.tar
- name: Run Clang-Tidy
# TODO(romangg): For now we skip the actual clang-tidy operation on CI because
# the process consumes too much resources and the runner terminates.
if: false
run: tooling/analysis/clang-tidy.py -p build
run: tooling/analysis/clang-tidy.py -p build -j ${{ inputs.threads }}
shell: bash

0 comments on commit 6127573

Please sign in to comment.