Skip to content

Commit ee6f03f

Browse files
authored
add "optimize" as an option
1 parent 9ed3aa0 commit ee6f03f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ inputs:
4141
test_args:
4242
description: 'Arguments string that is passed on to test.'
4343
default: ''
44+
optimize:
45+
description: 'Set the optimization level for the julia process being run during tests. Default value: 3'
46+
default: '2'
4447

4548
runs:
4649
using: 'composite'
@@ -78,3 +81,4 @@ runs:
7881
COMPILED_MODULES: ${{ inputs.compiled_modules }}
7982
ALLOW_RERESOLVE: ${{ inputs.allow_reresolve }}
8083
DEPWARN: ${{ inputs.depwarn }}
84+
OPTIMIZE: ${{ inputs.optimize }}

test_harness.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ kwargs = Kwargs.kwargs(; coverage=ENV["COVERAGE"],
77
string("--compiled-modules=", ENV["COMPILED_MODULES"]),
88
# Needs to be done via `julia_args` to ensure `depwarn: no` is respected:
99
# https://github.com/JuliaLang/Pkg.jl/pull/1763#discussion_r406819660
10-
string("--depwarn=", ENV["DEPWARN"]),],
10+
string("--depwarn=", ENV["DEPWARN"]),
11+
string("--optimize=", ENV["OPTIMIZE"]),],
1112
test_args=ARGS,
1213
)
1314

0 commit comments

Comments
 (0)