Skip to content

Commit

Permalink
aarch test
Browse files Browse the repository at this point in the history
  • Loading branch information
ivborissov committed Sep 16, 2024
1 parent ff1d77e commit 6bf2810
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Artifacts.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,11 @@ os = "macos"
[[heta_app.download]]
sha256 = "9454cd0b5a47f5692a5a5decdf47a0e03ef18892f4be5c55d28777bf499176a3"
url = "https://github.com/hetalang/heta-compiler/releases/download/v0.8.7/heta-compiler-macos.tar.gz"
[[heta_app]]
arch = "aarch64"
git-tree-sha1 = "a741cebf5cd6872b9da78a1713e5b835f9bc919b"
os = "macos"

[[heta_app.download]]
sha256 = "9454cd0b5a47f5692a5a5decdf47a0e03ef18892f4be5c55d28777bf499176a3"
url = "https://github.com/hetalang/heta-compiler/releases/download/v0.8.7/heta-compiler-macos.tar.gz"
10 changes: 10 additions & 0 deletions artifacts_scripts/build_artifacts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@ for os in ("linux", "windows", "macos")
lazy = false,
)
end

# add aarch64 for macos
add_artifact!(
artifacts_toml,
"heta_app",
"https://github.com/hetalang/heta-compiler/releases/download/$HETA_COMPILER_RELEASE/heta-compiler-macos.tar.gz";
platform = Artifacts.Platform("aarch64", "macos"),
force = true,
lazy = false,
)
2 changes: 1 addition & 1 deletion src/HetaSimulator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module HetaSimulator
function heta_compiler_load()
artifact_info = artifact_meta("heta_app", joinpath(@__DIR__, "..", "Artifacts.toml"))

artifact_info === nothing && return nothing # throw?
artifact_info === nothing && throw("Your arch/OS is not supported by heta-compiler. Please, report this issue to Heta development team.")

return artifact_path(SHA1(artifact_info["git-tree-sha1"]))
end
Expand Down

0 comments on commit 6bf2810

Please sign in to comment.