Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AUTO] Update precompiles [skip ci] #118

Open
wants to merge 8 commits into
base: snoop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions .github/workflows/SnoopCompile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
fail-fast: false
matrix:
version: # NOTE: the versions below should match those in your botconfig
- '1'
- '1.6' # ⎤
- '1.7' # ⎦ <<< 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 All @@ -35,9 +36,8 @@ 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 --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()'

# TESTCMD
- name: Default TESTCMD
Expand Down Expand Up @@ -70,10 +70,8 @@ jobs:

- name: CompileBot postprocess
run: |
ls artifact
ls
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 .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: 1
version: '1.7'

# Setup
- name: Ubuntu TESTCMD
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,18 @@ jobs:
fail-fast: false
matrix:
version:
- '1.5'
- '1.6'
- 'nightly'
- '1.6' # LTS
- '1.7' # latest stable
os:
- ubuntu-latest
- windows-latest
- macos-latest
arch:
- x64
# - x86
include:
- version: '1'
- version: 'nightly'
os: ubuntu-latest
- version: '1'
os: windows-latest
- version: '1'
os: macos-latest

steps:
# Setup environment
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Showoff = "0.3.1, 1.0"
StatsBase = "0.32 - 0.33"
UnicodeFun = "0.4"
UnicodePlots = "2.4"
julia = "1.5"
julia = "1.6"

[extras]
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
Expand Down
383 changes: 383 additions & 0 deletions deps/SnoopCompile/precompile/1.6/precompile_Plots.jl

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions deps/SnoopCompile/snoop_bench.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using CompileBot
include("snoop_bot_config.jl")

snoop_bench(
BotConfig(
"Plots",
),
botconfig,
joinpath(@__DIR__, "precompile_script.jl"),
)
6 changes: 2 additions & 4 deletions deps/SnoopCompile/snoop_bot.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using CompileBot
include("snoop_bot_config.jl")

snoop_bot(
BotConfig(
"Plots",
),
botconfig,
joinpath(@__DIR__, "precompile_script.jl"),
)
7 changes: 7 additions & 0 deletions deps/SnoopCompile/snoop_bot_config.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
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",
)
15 changes: 14 additions & 1 deletion src/precompile_includer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ should_precompile = true

# Don't edit the following! Instead change the script for `snoop_bot`.
ismultios = false
ismultiversion = false
ismultiversion = true
# precompile_enclosure
@static if !should_precompile
# nothing
Expand All @@ -14,4 +14,17 @@ elseif !ismultios && !ismultiversion
_precompile_()
end
else
@static if 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
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