For CI of large repositories that aim at some high level of modularity the code often consists of some functions/methods where runtime performance is important but many others that are only run once and so compile time is critical. Especially during CI it's very often beneficial to lower the compiler optimization to -O0 to lower compile time, often resulting in 1-10x faster testing, see NumericalEarth/Breeze.jl#457. In that repo @giordano bypassed julia-runtest to be able to pass on the compiler optimization flag.
Looking at the code here, it seems that
|
julia_args=[string("--check-bounds=", ENV["CHECK_BOUNDS"]), |
|
string("--compiled-modules=", ENV["COMPILED_MODULES"]), |
|
# Needs to be done via `julia_args` to ensure `depwarn: no` is respected: |
|
# https://github.com/JuliaLang/Pkg.jl/pull/1763#discussion_r406819660 |
|
string("--depwarn=", ENV["DEPWARN"]),], |
julia arguments are handled in different ways. Would it be possible to either
- allow/document a generic way to pass on arguments like
-O, I'm unsure whether there is a way to write this into a github actions CI.yml file
- if no, extend the special treat to
-O as it's for us super important now to be able to lower CI time generally?
Many thanks!
For CI of large repositories that aim at some high level of modularity the code often consists of some functions/methods where runtime performance is important but many others that are only run once and so compile time is critical. Especially during CI it's very often beneficial to lower the compiler optimization to
-O0to lower compile time, often resulting in 1-10x faster testing, see NumericalEarth/Breeze.jl#457. In that repo @giordano bypassedjulia-runtestto be able to pass on the compiler optimization flag.Looking at the code here, it seems that
julia-runtest/test_harness.jl
Lines 6 to 10 in fc07e51
julia arguments are handled in different ways. Would it be possible to either
-O, I'm unsure whether there is a way to write this into a github actions CI.yml file-Oas it's for us super important now to be able to lower CI time generally?Many thanks!