Skip to content

Commit

Permalink
feat: add --jobs parameter to action
Browse files Browse the repository at this point in the history
See cpp-linter/cpp-linter#92 for the related CLI updates.
  • Loading branch information
jnooree committed Mar 21, 2024
1 parent 1423120 commit a138bd0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ inputs:
description: Set this to true to enable PR reviews from clang-format.See also https://cpp-linter.github.io/cpp-linter/pr_review_caveats.html
required: false
default: false
jobs:
description: |
The number of jobs to run in parallel. If <= 0, the number of jobs is set to use the number of all available CPU cores.
required: false
default: 0
outputs:
checks-failed:
description: An integer that can be used as a boolean value to indicate if any checks failed by clang-tidy and clang-format.
Expand Down Expand Up @@ -176,7 +181,8 @@ runs:
--file-annotations=${{ inputs.file-annotations }} \
--extra-arg="${{ inputs.extra-args }}" \
--tidy-review="${{ inputs.tidy-review }}" \
--format-review="${{ inputs.format-review }}"
--format-review="${{ inputs.format-review }}" \
--jobs=${{ inputs.jobs }}
- name: Setup python venv (Windows)
if: runner.os == 'Windows'
Expand Down Expand Up @@ -211,6 +217,7 @@ runs:
' --file-annotations=${{ inputs.file-annotations }}' +
' --extra-arg="${{ inputs.extra-args }}"' +
' --tidy-review="${{ inputs.tidy-review }}"' +
' --format-review="${{ inputs.format-review }}"'
' --format-review="${{ inputs.format-review }}"' +
' --jobs=${{ inputs.jobs }}'
Invoke-Expression -Command $app

0 comments on commit a138bd0

Please # to comment.