enable precompilation on nightly

This commit is contained in:
t-bltg 2022-01-28 11:50:44 +01:00
parent 3e8db4532b
commit 264ddebd1e
3 changed files with 10 additions and 6 deletions

View File

@ -21,8 +21,9 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
version: # NOTE: the versions below should match those in your botconfig version: # NOTE: the versions below should match those in your botconfig
- '1.6' # ⎤ - '1.6' # ⎤
- '1.7' # ⎦ <<< keep these versions in sync with deps/SnoopCompile/snoop_bot_config.jl - '1.7' # |
- 'nightly' # ⎦ <<< keep these versions in sync with deps/SnoopCompile/snoop_bot_config.jl
os: # NOTE: should match the os setting of your botconfig os: # NOTE: should match the os setting of your botconfig
- ubuntu-latest - ubuntu-latest
arch: arch:

View File

@ -2,6 +2,6 @@ using CompileBot
botconfig = BotConfig( botconfig = BotConfig(
"Plots", "Plots",
version = [v"1.6", v"1.7"], # <<< keep versions in sync with .github/workflows/SnoopCompile.yml version = [v"1.6", v"1.7"], # <<< keep versions in sync with .github/workflows/CompileBot.yml
# else_version = v"1.8", else_version = "nightly",
) )

View File

@ -1,5 +1,4 @@
#! format: off should_precompile = false
should_precompile = true
# Don't edit the following! Instead change the script for `snoop_bot`. # Don't edit the following! Instead change the script for `snoop_bot`.
@ -25,6 +24,10 @@ elseif v"1.7.0-DEV" <= VERSION <= v"1.7.9"
_precompile_() _precompile_()
end end
else else
@static if isfile(joinpath(@__DIR__, "../deps/SnoopCompile/precompile//1.8/precompile_Plots.jl"))
include("../deps/SnoopCompile/precompile//1.8/precompile_Plots.jl")
_precompile_()
end
end end
end # precompile_enclosure end # precompile_enclosure