From 6bf2810a3faea2ecbcda4bd155151c5863033190 Mon Sep 17 00:00:00 2001 From: ivborissov Date: Mon, 16 Sep 2024 20:33:21 +0300 Subject: [PATCH] aarch test --- Artifacts.toml | 8 ++++++++ artifacts_scripts/build_artifacts.jl | 10 ++++++++++ src/HetaSimulator.jl | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/Artifacts.toml b/Artifacts.toml index 607457c..c823a4f 100644 --- a/Artifacts.toml +++ b/Artifacts.toml @@ -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" diff --git a/artifacts_scripts/build_artifacts.jl b/artifacts_scripts/build_artifacts.jl index 7a303f8..7e0c95e 100644 --- a/artifacts_scripts/build_artifacts.jl +++ b/artifacts_scripts/build_artifacts.jl @@ -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, +) diff --git a/src/HetaSimulator.jl b/src/HetaSimulator.jl index 0293228..55f6060 100644 --- a/src/HetaSimulator.jl +++ b/src/HetaSimulator.jl @@ -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