Skip to content

Commit e8a8202

Browse files
authored
feat: allow threads as input
1 parent 3a055a9 commit e8a8202

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ inputs:
3535
compiled_modules:
3636
description: 'Whether to run tests with `compiled-modules`. For possible values, refer to https://docs.julialang.org/en/v1/manual/command-line-interface/#command-line-interface'
3737
default: 'yes'
38+
threads:
39+
description: 'Value passed to the --threads flag. Default value: auto.'
40+
default: 'auto'
41+
required: false
3842

3943
runs:
4044
using: 'composite'
@@ -54,7 +58,7 @@ runs:
5458
if: inputs.annotate == 'true'
5559
- run: |
5660
# The Julia command that will be executed
57-
julia_cmd=( julia --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'include(joinpath(ENV["GITHUB_ACTION_PATH"], "test_harness.jl"))' )
61+
julia_cmd=( julia --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} --threads=${{ inputs.threads }} -e 'include(joinpath(ENV["GITHUB_ACTION_PATH"], "test_harness.jl"))' )
5862
5963
# Add the prefix in front of the command if there is one
6064
prefix=( ${{ inputs.prefix }} )

0 commit comments

Comments
 (0)