Skip to content

Commit

Permalink
Support for Julia 1.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Apr 14, 2021
1 parent d98c456 commit cb8810b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- '1.3'
- '1.4'
- '1.5'
- '1.6'
os:
- ubuntu-latest
arch:
Expand All @@ -25,7 +26,7 @@ jobs:
- 8cb458c6dcd8e067a3bd430b006efb0dfde56cf9 # directly from Git, never built
- master # directly from Git, likely built
env:
JULIA_DEBUG: NewPkgEval
JULIA_DEBUG: PkgEval
JULIA_VERSION: ${{ matrix.build_version }}
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ SHA = "ea8e919c-243c-51af-8825-aaa63cd721ce"
Sockets = "6462fe0b-24de-5631-8697-dd941f90decc"

[compat]
BinaryBuilder = "0.2.1"
BinaryBuilder = "0.2.1, 0.3"
DataFrames = "0.19, 0.20, 0.21"
Downloads = "1.0"
julia = "1.3"
Expand Down
8 changes: 8 additions & 0 deletions deps/Versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,11 @@ url = "https://julialang-s3.julialang.org/bin/linux/x64/1.5/julia-1.5.2-linux-x8
["1.5.3"]
sha = "f190c938dd6fed97021953240523c9db448ec0a6760b574afd4e9924ab5615f1"
url = "https://julialang-s3.julialang.org/bin/linux/x64/1.5/julia-1.5.3-linux-x86_64.tar.gz"

["1.5.4"]
sha = "80dec351d1a593e8ad152636971a48d0c81bfcfab92c87f3604663616f1e8bc5"
url = "https://julialang-s3.julialang.org/bin/linux/x64/1.5/julia-1.5.4-linux-x86_64.tar.gz"

["1.6.0"]
sha = "463b71dc70ca7094c0e0fd6d55d130051a7901e8dec5eb44d6002c57d1bd8585"
url = "https://julialang-s3.julialang.org/bin/linux/x64/1.6/julia-1.6.0-linux-x86_64.tar.gz"
8 changes: 7 additions & 1 deletion src/run.jl
Original file line number Diff line number Diff line change
Expand Up @@ -532,11 +532,17 @@ function run(julia_versions::Vector{VersionNumber}, pkgs::Vector;
ctx = Pkg.Types.Context()
pkg_version_info = Pkg.Operations.load_versions(ctx, job.pkg.path)
pkg_versions = sort!(collect(keys(pkg_version_info)))
pkg_compat =
pkg_compat = VERSION >= v"1.6"
Pkg.Operations.load_package_data(ctx, Pkg.Types.VersionSpec,
joinpath(job.pkg.path,
"Compat.toml"),
pkg_versions)
else
Pkg.Operations.load_package_data(Pkg.Types.VersionSpec,
joinpath(job.pkg.path,
"Compat.toml"),
pkg_versions)
end
for (pkg_version, bounds) in pkg_compat
if haskey(bounds, "julia")
julia_supported[pkg_version] =
Expand Down

0 comments on commit cb8810b

Please sign in to comment.