Skip to content

Commit 05a99bd

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

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

action.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ inputs:
214214
default: false
215215
minimum-version: '2.9.0'
216216
required-permission: 'pull_request: write #pull-request-reviews'
217+
jobs:
218+
description: |
219+
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.
220+
required: false
221+
default: 0
217222
outputs:
218223
checks-failed:
219224
description: An integer that can be used as a boolean value to indicate if any checks failed by clang-tidy and clang-format.
@@ -286,7 +291,8 @@ runs:
286291
--file-annotations=${{ inputs.file-annotations }} \
287292
--extra-arg="${{ inputs.extra-args }}" \
288293
--tidy-review="${{ inputs.tidy-review }}" \
289-
--format-review="${{ inputs.format-review }}"
294+
--format-review="${{ inputs.format-review }}" \
295+
--jobs=${{ inputs.jobs }}
290296
291297
- name: Setup python venv (Windows)
292298
if: runner.os == 'Windows'
@@ -321,6 +327,7 @@ runs:
321327
' --file-annotations=${{ inputs.file-annotations }}' +
322328
' --extra-arg="${{ inputs.extra-args }}"' +
323329
' --tidy-review="${{ inputs.tidy-review }}"' +
324-
' --format-review="${{ inputs.format-review }}"'
330+
' --format-review="${{ inputs.format-review }}"' +
331+
' --jobs=${{ inputs.jobs }}'
325332
326333
Invoke-Expression -Command $app

0 commit comments

Comments
 (0)