Skip to content

Commit

Permalink
Merge pull request #60 from hetalang/aarch64
Browse files Browse the repository at this point in the history
aarch64 platform added to artifacts
  • Loading branch information
ivborissov authored Sep 17, 2024
2 parents ff1d77e + 9cf8bb5 commit dac989c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
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"
11 changes: 9 additions & 2 deletions artifacts_scripts/build_artifacts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,17 @@ const HETA_COMPILER_RELEASE = "v0.8.7"

const artifacts_toml = joinpath(@__DIR__, "..", "Artifacts.toml")

for os in ("linux", "windows", "macos")
platforms = [
Artifacts.Platform("x86_64", "linux"),
Artifacts.Platform("x86_64", "windows"),
Artifacts.Platform("x86_64", "macos"),
Artifacts.Platform("aarch64", "macos")
]

for platform in platforms

os = platform.tags["os"]
url = "https://github.com/hetalang/heta-compiler/releases/download/$HETA_COMPILER_RELEASE/heta-compiler-$os.tar.gz"
platform = Artifacts.Platform("x86_64", os)

add_artifact!(
artifacts_toml,
Expand Down
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 dac989c

Please sign in to comment.