-
-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add Julia artifacts Co-authored-by: matcox <[email protected]>
- Loading branch information
1 parent
493fbf5
commit af142cf
Showing
8 changed files
with
119 additions
and
25 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
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
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,7 @@ | ||
[brainflow] | ||
git-tree-sha1 = "1681bc5c836c0465e02c42dce71db9572d723b6e" | ||
lazy = true | ||
|
||
[[brainflow.download]] | ||
sha256 = "92bd7485de8ccbd19d27a9b203e8176806269415b1087c767bb36539efe063d9" | ||
url = "https://github.com/brainflow-dev/brainflow/releases/download/3.7.2/compiled_libs.tar" |
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 |
---|---|---|
@@ -1,11 +1,14 @@ | ||
name = "brainflow" | ||
uuid = "abd5acf9-0fc9-4730-984d-e27a37823580" | ||
authors = ["Andrey1994 <[email protected]>"] | ||
version = "0.1.0" | ||
version = "3.7.2" | ||
|
||
[deps] | ||
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6" | ||
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09" | ||
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
SHA = "ea8e919c-243c-51af-8825-aaa63cd721ce" | ||
Tar = "a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e" | ||
|
||
[compat] | ||
julia = "1.2" | ||
julia = "1.3" |
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,45 @@ | ||
# when new brainflow binaries are released, then this script needs to be re-executed. | ||
|
||
using SHA | ||
using Pkg | ||
using Pkg.Artifacts | ||
using Tar | ||
|
||
function sha256sum(tarball_path) | ||
return open(tarball_path, "r") do io | ||
return bytes2hex(sha256(io)) | ||
end | ||
end | ||
|
||
function add_brainflow_artifact!( | ||
url, | ||
artifact_toml_path = "Artifacts.toml", | ||
artifact_name = "brainflow", | ||
) | ||
|
||
download_path = "$(tempname())-download.tar" | ||
download(url, download_path) | ||
tar_hash_sha256 = sha256sum(download_path) | ||
|
||
brainflow_hash = create_artifact() do artifact_dir | ||
# Pkg.PlatformEngines.unpack() gives errors for some users on Windows | ||
Tar.extract(download_path, artifact_dir) | ||
end | ||
|
||
rm(download_path) | ||
|
||
Pkg.Artifacts.bind_artifact!( | ||
artifact_toml_path, | ||
artifact_name, | ||
brainflow_hash; | ||
download_info=[(url, tar_hash_sha256)], | ||
force=true, | ||
lazy=true, | ||
) | ||
|
||
return brainflow_hash | ||
end | ||
|
||
cd(@__DIR__) | ||
include("src/brainflow_url.jl") | ||
add_brainflow_artifact!(brainflow_url()) |
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
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 @@ | ||
# TODO: automatically generate by brainflow CICD | ||
function brainflow_url() | ||
url = "https://github.com/brainflow-dev/brainflow/releases/download/3.7.2/compiled_libs.tar" | ||
return url | ||
end |
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
af142cf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register subdir=julia-package/brainflow