Skip to content

Commit

Permalink
update precompile_includer
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Dec 1, 2021
1 parent b47bcea commit f45965c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/SnoopCompile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Install dependencies
run: |
julia --project -e 'using Pkg; Pkg.instantiate()'
julia -e 'using Pkg; Pkg.add( PackageSpec(name = "CompileBot", version = "1") ); Pkg.develop(PackageSpec(; path=pwd())); using CompileBot; CompileBot.addtestdep()'
julia -e 'using Pkg; Pkg.add(PackageSpec(name="CompileBot", version="1")); Pkg.develop(PackageSpec(; path=pwd())); using CompileBot; CompileBot.addtestdep()'
# TESTCMD
- name: Default TESTCMD
Expand Down Expand Up @@ -71,8 +71,8 @@ jobs:

- name: CompileBot postprocess
run: |
if ! grep -m1 -q 'format' artifact/src/precompile_includer.jl; then sed -i '1 i\#! format: off' artifact/src/precompile_includer.jl; fi
julia -e 'using Pkg; Pkg.add( PackageSpec(name = "CompileBot", version = "1") ); using CompileBot; CompileBot.postprocess()'
if ! grep -m1 -q 'format: off' artifact/src/precompile_includer.jl; then sed -i '1 i\#! format: off' artifact/src/precompile_includer.jl; fi
julia -e 'using Pkg; Pkg.add(PackageSpec(name="CompileBot", version="1")); using CompileBot; CompileBot.postprocess()'
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
Expand Down
2 changes: 1 addition & 1 deletion deps/SnoopCompile/snoop_bot_config.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ using CompileBot
botconfig = BotConfig(
"Plots",
version = [v"1.5", v"1.6", v"1.7"], # NOTE: keep in sync with .github/workflows/SnoopCompile.yml
# else_version = v"1.7",
# else_version = v"1.8",
)
10 changes: 8 additions & 2 deletions src/precompile_includer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,22 @@ elseif !ismultios && !ismultiversion
_precompile_()
end
else
@static if v"1.6.0-DEV" <= VERSION <= v"1.6.9"
@static if v"1.5.0-DEV" <= VERSION <= v"1.5.9"
@static if isfile(joinpath(@__DIR__, "../deps/SnoopCompile/precompile//1.5/precompile_Plots.jl"))
include("../deps/SnoopCompile/precompile//1.5/precompile_Plots.jl")
_precompile_()
end
elseif v"1.6.0-DEV" <= VERSION <= v"1.6.9"
@static if isfile(joinpath(@__DIR__, "../deps/SnoopCompile/precompile//1.6/precompile_Plots.jl"))
include("../deps/SnoopCompile/precompile//1.6/precompile_Plots.jl")
_precompile_()
end
else
elseif v"1.7.0-DEV" <= VERSION <= v"1.7.9"
@static if isfile(joinpath(@__DIR__, "../deps/SnoopCompile/precompile//1.7/precompile_Plots.jl"))
include("../deps/SnoopCompile/precompile//1.7/precompile_Plots.jl")
_precompile_()
end
else
end

end # precompile_enclosure

0 comments on commit f45965c

Please sign in to comment.