Skip to content

Commit

Permalink
Starting support for select_artifacts.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Nov 29, 2022
1 parent 3d326d4 commit b5b02b0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions extract_artifacts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ artifact_dict = Pkg.Artifacts.load_artifacts_toml(artifacts_toml)

platform = platform_key_abi()

# Check for a select_artifacts.jl.
# See https://pkgdocs.julialang.org/v1/artifacts/#Extending-Platform-Selection
selectArtifactsJl = joinpath([built, ".pkg", "select_artifacts.jl"])
if isfile(selectArtifactsJl)
include(selectArtifactsJl)
extraMetas = augment_platform!(platform)
# TODO: add these extra artifacts to artifact_dict so they get processed below
end

# It's possible for the artifacts to have multiple entries with the same sha1,
# so group by that first
sha1_to_meta = Dict{String, Vector{Tuple{String, Any}}}()
Expand Down

0 comments on commit b5b02b0

Please sign in to comment.