Skip to content

Commit 6c46394

Browse files
committed
Add test JLL
1 parent f5cd48e commit 6c46394

File tree

60 files changed

+2156
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+2156
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using Base.BinaryPlatforms
2+
3+
function augment_platform!(platform)
4+
# Can't use Preferences since we might be running this very early with a non-existing Manifest
5+
LAMMPS_UUID = Base.UUID("5b3ab26d-9607-527c-88ea-8fe5ba57cafe")
6+
abi = get(Base.get_preferences(LAMMPS_UUID), "abi", Sys.iswindows() ? "microsoftmpi" : "mpich")
7+
if !haskey(platform, "mpi")
8+
platform["mpi"] = abi
9+
end
10+
return platform
11+
end
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Note: This file is executed from `Pkg` in an isolated environment.
2+
# Warn: Since this is executed in a sandbox, the current preferences are not
3+
# propagated and thus no decision can be made based on them.
4+
# Use LazyArtifacts in this case.
5+
# Fixed in https://github.com/JuliaLang/Pkg.jl/pull/2920
6+
7+
push!(Base.LOAD_PATH, "@stdlib")
8+
using TOML, Artifacts, Base.BinaryPlatforms
9+
include("./platform_augmentation.jl")
10+
artifacts_toml = joinpath(dirname(@__DIR__), "Artifacts.toml")
11+
12+
# Get "target triplet" from ARGS, if given (defaulting to the host triplet otherwise)
13+
target_triplet = get(ARGS, 1, Base.BinaryPlatforms.host_triplet())
14+
15+
# Augment this platform object with any special tags we require
16+
platform = augment_platform!(HostPlatform(parse(Platform, target_triplet)))
17+
18+
# Select all downloadable artifacts that match that platform
19+
artifacts = select_downloadable_artifacts(artifacts_toml; platform, include_lazy = true)
20+
21+
#Output the result to `stdout` as a TOML dictionary
22+
TOML.print(stdout, artifacts)

0 commit comments

Comments
 (0)