Skip to content

Commit b7d4e8b

Browse files
committed
Add test JLL
1 parent f5cd48e commit b7d4e8b

File tree

60 files changed

+2154
-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

+2154
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using Base.BinaryPlatforms
2+
3+
const LAMMPS_UUID = Base.UUID("5b3ab26d-9607-527c-88ea-8fe5ba57cafe")
4+
# Can't use Preferences since we might be running this very early with a non-existing Manifest
5+
const abi = get(Base.get_preferences(LAMMPS_UUID), "abi", Sys.iswindows() ? "microsoftmpi" : "mpich")
6+
7+
function augment_platform!(platform)
8+
if !haskey(platform, "mpi")
9+
platform["mpi"] = abi
10+
end
11+
return platform
12+
end
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
using TOML, Artifacts, Base.BinaryPlatforms
8+
include("./platform_augmentation.jl")
9+
artifacts_toml = joinpath(dirname(@__DIR__), "Artifacts.toml")
10+
11+
# Get "target triplet" from ARGS, if given (defaulting to the host triplet otherwise)
12+
target_triplet = get(ARGS, 1, Base.BinaryPlatforms.host_triplet())
13+
14+
# Augment this platform object with any special tags we require
15+
platform = augment_platform!(HostPlatform(parse(Platform, target_triplet)))
16+
17+
# Select all downloadable artifacts that match that platform
18+
artifacts = select_downloadable_artifacts(artifacts_toml; platform, include_lazy = true)
19+
20+
#Output the result to `stdout` as a TOML dictionary
21+
TOML.print(stdout, artifacts)

0 commit comments

Comments
 (0)