Skip to content

Commit

Permalink
enable precompilation on nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Jan 28, 2022
1 parent 3e8db45 commit 264ddeb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/CompileBot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ jobs:
fail-fast: false
matrix:
version: # NOTE: the versions below should match those in your botconfig
- '1.6' #
- '1.7' # ⎦ <<< keep these versions in sync with deps/SnoopCompile/snoop_bot_config.jl
- '1.6' #
- '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
- ubuntu-latest
arch:
Expand Down
4 changes: 2 additions & 2 deletions deps/SnoopCompile/snoop_bot_config.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ using CompileBot

botconfig = BotConfig(
"Plots",
version = [v"1.6", v"1.7"], # <<< keep versions in sync with .github/workflows/SnoopCompile.yml
# else_version = v"1.8",
version = [v"1.6", v"1.7"], # <<< keep versions in sync with .github/workflows/CompileBot.yml
else_version = "nightly",
)
7 changes: 5 additions & 2 deletions src/precompile_includer.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#! format: off
should_precompile = true
should_precompile = false


# Don't edit the following! Instead change the script for `snoop_bot`.
Expand All @@ -25,6 +24,10 @@ elseif v"1.7.0-DEV" <= VERSION <= v"1.7.9"
_precompile_()
end
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 # precompile_enclosure

0 comments on commit 264ddeb

Please sign in to comment.