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 authored and 2bndy5 committed Mar 28, 2024
1 parent 0061cab commit 0d1f984
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 @@ -191,6 +191,11 @@ inputs:
> The [`no-lgtm`](#no-lgtm) option is applicable to Pull Request reviews.
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 @@ -260,7 +265,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 @@ -295,6 +301,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 0d1f984

Please sign in to comment.