Skip to content

Commit a138bd0

Browse files
committed
feat: add --jobs parameter to action
See cpp-linter/cpp-linter#92 for the related CLI updates.
1 parent 1423120 commit a138bd0

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

action.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ inputs:
107107
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
108108
required: false
109109
default: false
110+
jobs:
111+
description: |
112+
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.
113+
required: false
114+
default: 0
110115
outputs:
111116
checks-failed:
112117
description: An integer that can be used as a boolean value to indicate if any checks failed by clang-tidy and clang-format.
@@ -176,7 +181,8 @@ runs:
176181
--file-annotations=${{ inputs.file-annotations }} \
177182
--extra-arg="${{ inputs.extra-args }}" \
178183
--tidy-review="${{ inputs.tidy-review }}" \
179-
--format-review="${{ inputs.format-review }}"
184+
--format-review="${{ inputs.format-review }}" \
185+
--jobs=${{ inputs.jobs }}
180186
181187
- name: Setup python venv (Windows)
182188
if: runner.os == 'Windows'
@@ -211,6 +217,7 @@ runs:
211217
' --file-annotations=${{ inputs.file-annotations }}' +
212218
' --extra-arg="${{ inputs.extra-args }}"' +
213219
' --tidy-review="${{ inputs.tidy-review }}"' +
214-
' --format-review="${{ inputs.format-review }}"'
220+
' --format-review="${{ inputs.format-review }}"' +
221+
' --jobs=${{ inputs.jobs }}'
215222
216223
Invoke-Expression -Command $app

0 commit comments

Comments
 (0)