Skip to content

Commit f9bb6ab

Browse files
authored
Merge pull request #67 from hetalang/arm64
Arm64 support in HC 0.9.7
2 parents 6860643 + 5c048b5 commit f9bb6ab

File tree

3 files changed

+35
-15
lines changed

3 files changed

+35
-15
lines changed

Artifacts.toml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,42 @@
11
[[heta_app]]
22
arch = "x86_64"
3-
git-tree-sha1 = "2859624742361c05dbf559f9545511cce44d8fe3"
3+
git-tree-sha1 = "614c7adc9f971c8e09d928930830be68f08fe3e7"
44
libc = "glibc"
55
os = "linux"
66

77
[[heta_app.download]]
8-
sha256 = "0c4e5cf7bbf88b57e5baf1d9d1f760ebca0f8695c25a8f63a7ff251ebc84a3ad"
9-
url = "https://github.com/hetalang/heta-compiler/releases/download/v0.9.6/heta-compiler-linux.tar.gz"
8+
sha256 = "753b4c45699474aaec6a29aaa733c26e8f9d37f33f305b2f4ea729a9fde16bf8"
9+
url = "https://github.com/hetalang/heta-compiler/releases/download/v0.9.7/heta-compiler-linux-x64.tar.gz"
10+
[[heta_app]]
11+
arch = "aarch64"
12+
git-tree-sha1 = "051a831eba2f761be4057ebd220b603e5b55ae8a"
13+
libc = "glibc"
14+
os = "linux"
15+
16+
[[heta_app.download]]
17+
sha256 = "f03b47f8be7fce12fe028e0e92f5128c806394e33f7b78031066a1cc55ea662d"
18+
url = "https://github.com/hetalang/heta-compiler/releases/download/v0.9.7/heta-compiler-linux-arm64.tar.gz"
1019
[[heta_app]]
1120
arch = "x86_64"
12-
git-tree-sha1 = "5487d7694f3af4ca9883726fdb7d0f55531b10e8"
21+
git-tree-sha1 = "45935fa8e9445c8fa9505dfb8a65bc9714c6ff34"
1322
os = "windows"
1423

1524
[[heta_app.download]]
16-
sha256 = "07ed2d024aa65066d4a173da3f9d715dee886201463cb609362fcbda50f11621"
17-
url = "https://github.com/hetalang/heta-compiler/releases/download/v0.9.6/heta-compiler-windows.tar.gz"
25+
sha256 = "600496950f676eaa527de018ac24c923ffdd9c630421747fb532796d0b45488a"
26+
url = "https://github.com/hetalang/heta-compiler/releases/download/v0.9.7/heta-compiler-windows-x64.tar.gz"
1827
[[heta_app]]
1928
arch = "x86_64"
20-
git-tree-sha1 = "837e95507e9f87cc5c1c1a9809cec17ad10c2b02"
29+
git-tree-sha1 = "1a58ed03070a8acc336504aed08be1b0677a957c"
2130
os = "macos"
2231

2332
[[heta_app.download]]
24-
sha256 = "1f94d5d32577bc977319ff019b5972b5ae0f23b09cab124b98a83867a00d75d1"
25-
url = "https://github.com/hetalang/heta-compiler/releases/download/v0.9.6/heta-compiler-macos.tar.gz"
33+
sha256 = "249612ce52856706b7b048cc6af9f6874703377bb971ac51af1ab78ae99078f5"
34+
url = "https://github.com/hetalang/heta-compiler/releases/download/v0.9.7/heta-compiler-macos-x64.tar.gz"
2635
[[heta_app]]
2736
arch = "aarch64"
28-
git-tree-sha1 = "837e95507e9f87cc5c1c1a9809cec17ad10c2b02"
37+
git-tree-sha1 = "64ae4fecbaa36c8fb5d7fb17f26156921292fd2d"
2938
os = "macos"
3039

3140
[[heta_app.download]]
32-
sha256 = "1f94d5d32577bc977319ff019b5972b5ae0f23b09cab124b98a83867a00d75d1"
33-
url = "https://github.com/hetalang/heta-compiler/releases/download/v0.9.6/heta-compiler-macos.tar.gz"
41+
sha256 = "f25866ade95b3aee8f0ca483ff9deef480535cf298ee8617279be978d1f25567"
42+
url = "https://github.com/hetalang/heta-compiler/releases/download/v0.9.7/heta-compiler-macos-arm64.tar.gz"

artifacts_scripts/build_artifacts.jl

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
using ArtifactUtils
22
using Pkg.Artifacts
33

4-
const HETA_COMPILER_RELEASE = "v0.9.6"
4+
const HETA_COMPILER_RELEASE = "v0.9.7"
55

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

88
platforms = [
99
Artifacts.Platform("x86_64", "linux"),
10+
Artifacts.Platform("aarch64", "linux"),
1011
Artifacts.Platform("x86_64", "windows"),
1112
Artifacts.Platform("x86_64", "macos"),
1213
Artifacts.Platform("aarch64", "macos")
@@ -15,7 +16,17 @@ platforms = [
1516
for platform in platforms
1617

1718
os = platform.tags["os"]
18-
url = "https://github.com/hetalang/heta-compiler/releases/download/$HETA_COMPILER_RELEASE/heta-compiler-$os.tar.gz"
19+
20+
arch = platform.tags["arch"]
21+
if arch == "x86_64"
22+
arch = "x64"
23+
elseif arch == "aarch64"
24+
arch = "arm64"
25+
else
26+
error("Unsupported architecture: $arch")
27+
end
28+
29+
url = "https://github.com/hetalang/heta-compiler/releases/download/$HETA_COMPILER_RELEASE/heta-compiler-$os-$arch.tar.gz"
1930

2031
add_artifact!(
2132
artifacts_toml,

src/HetaSimulator.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module HetaSimulator
77
import Base: SHA1
88

99
# heta-compiler supported version
10-
const HETA_COMPILER_VERSION = "0.9.6"
10+
const HETA_COMPILER_VERSION = "0.9.7"
1111
#const SUPPORTED_VERSIONS = ["0.8.4", "0.8.5", "0.8.6"]
1212

1313
function heta_compiler_load()

0 commit comments

Comments
 (0)