-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to using Artifacts.toml for binaries
- Loading branch information
Showing
6 changed files
with
97 additions
and
69 deletions.
There are no files selected for viewing
This file contains 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,32 @@ | ||
[[PATHSolver]] | ||
git-tree-sha1 = "ad0dc8bbf95cc578b4fdcd8343cf30ae787b9e23" | ||
arch = "x86_64" | ||
os = "linux" | ||
|
||
[[PATHSolver.download]] | ||
sha256 = "4010567a30a8cc0167f9fcaa44f24fc7bdb62345f55de9271f5616b6b2f7b20f" | ||
url = "https://github.com/chkwon/PATHSolver.jl/releases/download/v5.0.3-path-binaries/x86_64-linux-gnu.tar.bz2" | ||
[[PATHSolver]] | ||
git-tree-sha1 = "25708f6f152ddbb1c4800f19b9c65ea9b6d8c27d" | ||
arch = "x86_64" | ||
os = "macos" | ||
|
||
[[PATHSolver.download]] | ||
sha256 = "49c27eb65d0fa6b18c051ad28809fbc0b5a436ff0cd4a8591c43f042c9140f69" | ||
url = "https://github.com/chkwon/PATHSolver.jl/releases/download/v5.0.3-path-binaries/x86_64-apple-darwin.tar.bz2" | ||
[[PATHSolver]] | ||
git-tree-sha1 = "95592e56c188b48b217594bfbc4ffb774b7c7a9f" | ||
arch = "aarch64" | ||
os = "macos" | ||
|
||
[[PATHSolver.download]] | ||
sha256 = "b08c1c2f350edf806f67876caf8befd4736738f8f85cb9f4cf019d09fbc47dd5" | ||
url = "https://github.com/chkwon/PATHSolver.jl/releases/download/v5.0.3-path-binaries/aarch64-apple-darwin.tar.bz2" | ||
[[PATHSolver]] | ||
git-tree-sha1 = "817a91944b44805dfdd817629eed4157b67e43b5" | ||
arch = "x86_64" | ||
os = "windows" | ||
|
||
[[PATHSolver.download]] | ||
sha256 = "e7d309770cb426ca190470ce638cdaa5bd702b448b11400d8ef3e94d8eef81a2" | ||
url = "https://github.com/chkwon/PATHSolver.jl/releases/download/v5.0.3-path-binaries/x86_64-w64-mingw32.tar.bz2" |
This file contains 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 |
---|---|---|
|
@@ -4,12 +4,12 @@ authors = ["Changhyun Kwon <[email protected]>", "Oscar Dowson <[email protected] | |
version = "1.7.4" | ||
|
||
[deps] | ||
DataDeps = "124859b0-ceae-595e-8997-d05f6a7a8dfe" | ||
LazyArtifacts = "4af54fe1-eca0-43a8-85a7-787d91b784e3" | ||
MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee" | ||
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" | ||
|
||
[compat] | ||
DataDeps = "0.7" | ||
LazyArtifacts = "1.6" | ||
MathOptInterface = "1.19" | ||
SparseArrays = "<0.0.1, 1.6" | ||
Test = "<0.0.1, 1.6" | ||
|
This file contains 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,5 @@ | ||
*.tar.bz2 | ||
aarch64-apple-darwin | ||
x86_64-apple-darwin | ||
x86_64-linux-gnu | ||
x86_64-w64-mingw32 |
This file contains 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,5 @@ | ||
[deps] | ||
Inflate = "d25df0c9-e2be-5dd7-82c8-3ad0b3e990b9" | ||
SHA = "ea8e919c-243c-51af-8825-aaa63cd721ce" | ||
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76" | ||
Tar = "a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e" |
This file contains 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,41 @@ | ||
# Copyright (c) 2024 Oscar Dowson, and contributors | ||
# | ||
# Use of this source code is governed by an MIT-style license that can be found | ||
# in the LICENSE.md file or at https://opensource.org/licenses/MIT. | ||
|
||
using Tar, Inflate, SHA, TOML | ||
|
||
function get_artifact(data) | ||
dir = "$(data.arch)-$(data.platform)" | ||
filename = "$(dir).tar.bz2" | ||
run(`tar -cjf $filename $dir`) | ||
url = "https://github.com/chkwon/PATHSolver.jl/releases/download/v5.0.3-path-binaries/$filename" | ||
ret = Dict( | ||
"git-tree-sha1" => Tar.tree_hash(`gzcat $filename`), | ||
"arch" => data.arch, | ||
"os" => data.os, | ||
"download" => Any[ | ||
Dict("sha256" => bytes2hex(open(sha256, filename)), "url" => url), | ||
] | ||
) | ||
return ret | ||
end | ||
|
||
function main() | ||
platforms = [ | ||
(os = "linux", arch = "x86_64", platform = "linux-gnu"), | ||
(os = "macos", arch = "x86_64", platform = "apple-darwin"), | ||
(os = "macos", arch = "aarch64", platform = "apple-darwin"), | ||
(os = "windows", arch = "x86_64", platform = "w64-mingw32"), | ||
] | ||
output = Dict("PATHSolver" => get_artifact.(platforms)) | ||
open(joinpath(dirname(@__DIR__), "Artifacts.toml"), "w") do io | ||
return TOML.print(io, output) | ||
end | ||
return | ||
end | ||
|
||
# julia --project=scripts scripts/update_artifacts.jl | ||
# | ||
# Update the Artifacts.toml file. | ||
main() |
This file contains 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