-
Notifications
You must be signed in to change notification settings - Fork 8
Support augment_platform in JLLWrappers #35
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b118f2b
run CI on 1.6 and 1.7
vchuravy 26ad255
dev JLLWrappers
vchuravy d3c1bf5
don't fail if dependency doesn't have PATH_list or LIBPATH_list
vchuravy f5cd48e
Support augment_platform in JLLWrappers
vchuravy df99fa2
Add test JLL
vchuravy 14c118c
bump version
vchuravy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,8 @@ jobs: | |
| - "1.3" | ||
| - "1.4" | ||
| - "1.5" | ||
| - "^1.6.0-0" | ||
| - "1.6" | ||
| - "1.7" | ||
| - "nightly" | ||
| os: | ||
| - ubuntu-latest | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| using Base.BinaryPlatforms | ||
|
|
||
| function augment_platform!(platform) | ||
vchuravy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # Can't use Preferences since we might be running this very early with a non-existing Manifest | ||
| LAMMPS_UUID = Base.UUID("5b3ab26d-9607-527c-88ea-8fe5ba57cafe") | ||
| abi = get(Base.get_preferences(LAMMPS_UUID), "abi", Sys.iswindows() ? "microsoftmpi" : "mpich") | ||
| if !haskey(platform, "mpi") | ||
staticfloat marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| platform["mpi"] = abi | ||
| end | ||
| return platform | ||
| end | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # Note: This file is executed from `Pkg` in an isolated environment. | ||
| # Warn: Since this is executed in a sandbox, the current preferences are not | ||
vchuravy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # propagated and thus no decision can be made based on them. | ||
| # Use LazyArtifacts in this case. | ||
| # Fixed in https://github.com/JuliaLang/Pkg.jl/pull/2920 | ||
|
|
||
| push!(Base.LOAD_PATH, dirname(@__DIR__)) | ||
vchuravy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| using TOML, Artifacts, Base.BinaryPlatforms | ||
| include("./platform_augmentation.jl") | ||
| artifacts_toml = joinpath(dirname(@__DIR__), "Artifacts.toml") | ||
|
|
||
| # Get "target triplet" from ARGS, if given (defaulting to the host triplet otherwise) | ||
| target_triplet = get(ARGS, 1, Base.BinaryPlatforms.host_triplet()) | ||
|
|
||
| # Augment this platform object with any special tags we require | ||
| platform = augment_platform!(HostPlatform(parse(Platform, target_triplet))) | ||
|
|
||
| # Select all downloadable artifacts that match that platform | ||
| artifacts = select_downloadable_artifacts(artifacts_toml; platform, include_lazy = true) | ||
vchuravy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| #Output the result to `stdout` as a TOML dictionary | ||
| TOML.print(stdout, artifacts) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.