Skip to content

Commit ed4709c

Browse files
committed
update hc v0.9.3
1 parent cd0f645 commit ed4709c

File tree

5 files changed

+29
-17
lines changed

5 files changed

+29
-17
lines changed

Artifacts.toml

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

77
[[heta_app.download]]
8-
sha256 = "f9f048ea9485de1fdea25da994af467acb791a81905f96f543158c0954265bda"
9-
url = "https://github.com/hetalang/heta-compiler/releases/download/0.9.1/heta-compiler-linux.tar.gz"
8+
sha256 = "029501b114480ebd086797e9df52f4d29117171f83dcb4129ac778e0d38e94e0"
9+
url = "https://github.com/hetalang/heta-compiler/releases/download/v0.9.3/heta-compiler-linux.tar.gz"
1010
[[heta_app]]
1111
arch = "x86_64"
12-
git-tree-sha1 = "b9db1bbb1880eff0e7fb132fb8667b6a49329ec1"
12+
git-tree-sha1 = "bf635c670acc443189f23242fdbe1aabafb031ab"
1313
os = "windows"
1414

1515
[[heta_app.download]]
16-
sha256 = "51886e6dc13675f5e9c388195677f50f16276e196201799bdcb2765f8b07e425"
17-
url = "https://github.com/hetalang/heta-compiler/releases/download/0.9.1/heta-compiler-windows.tar.gz"
16+
sha256 = "4122ea674a77e28b59592f55fa97f8fae1768b850f2c290c42df49fbd66d27cf"
17+
url = "https://github.com/hetalang/heta-compiler/releases/download/v0.9.3/heta-compiler-windows.tar.gz"
1818
[[heta_app]]
1919
arch = "x86_64"
20-
git-tree-sha1 = "e7da3b902999a5324eb13d6c1c4ee2cf5308a956"
20+
git-tree-sha1 = "7c42793cc98d76b2acdb4cf5681d87f9bb91ee2d"
2121
os = "macos"
2222

2323
[[heta_app.download]]
24-
sha256 = "b6afac6febab1536224e9abcead7f7b31ddd14061e8135f3cbfc0212b326fcd3"
25-
url = "https://github.com/hetalang/heta-compiler/releases/download/0.9.1/heta-compiler-macos.tar.gz"
24+
sha256 = "cab778158e708d3c0e551226cb6b3ab9b9978ff3e3e4a24f859a2bdd164d1b27"
25+
url = "https://github.com/hetalang/heta-compiler/releases/download/v0.9.3/heta-compiler-macos.tar.gz"
2626
[[heta_app]]
2727
arch = "aarch64"
28-
git-tree-sha1 = "e7da3b902999a5324eb13d6c1c4ee2cf5308a956"
28+
git-tree-sha1 = "7c42793cc98d76b2acdb4cf5681d87f9bb91ee2d"
2929
os = "macos"
3030

3131
[[heta_app.download]]
32-
sha256 = "b6afac6febab1536224e9abcead7f7b31ddd14061e8135f3cbfc0212b326fcd3"
33-
url = "https://github.com/hetalang/heta-compiler/releases/download/0.9.1/heta-compiler-macos.tar.gz"
32+
sha256 = "cab778158e708d3c0e551226cb6b3ab9b9978ff3e3e4a24f859a2bdd164d1b27"
33+
url = "https://github.com/hetalang/heta-compiler/releases/download/v0.9.3/heta-compiler-macos.tar.gz"

Project.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ authors = ["Ivan Borisov", "Evgeny Metelkin"]
44
version = "0.7.2"
55

66
[deps]
7+
ArtifactUtils = "8b73e784-e7d8-4ea5-973d-377fed4e3bce"
78
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
89
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
910
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
@@ -16,6 +17,7 @@ NLopt = "76087f3c-5699-56af-9a33-bf431cd00edd"
1617
NaNMath = "77ba4419-2d1f-58cd-9bb1-8ffee604a2e3"
1718
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
1819
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
20+
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
1921
ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca"
2022
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
2123
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
@@ -24,6 +26,7 @@ Sundials = "c3572dad-4567-51f8-b174-8c6c989267f4"
2426
XLSX = "fdbf4ff8-1666-58a4-91e7-1b58723a45e0"
2527

2628
[compat]
29+
ArtifactUtils = "0.2.4"
2730
CSV = "0.10"
2831
DataFrames = "1"
2932
DataStructures = "0.18"
@@ -32,6 +35,7 @@ LabelledArrays = "1.6.1"
3235
NLopt = "0.6"
3336
NaNMath = "1"
3437
OrdinaryDiffEq = "6"
38+
Plots = "1.40.9"
3539
ProgressMeter = "1"
3640
RecipesBase = "1"
3741
Reexport = "1"

artifacts_scripts/build_artifacts.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using ArtifactUtils
22
using Pkg.Artifacts
33

4-
const HETA_COMPILER_RELEASE = "0.9.1"
4+
const HETA_COMPILER_RELEASE = "v0.9.3"
55

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

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.1"
10+
const HETA_COMPILER_VERSION = "0.9.3"
1111
#const SUPPORTED_VERSIONS = ["0.8.4", "0.8.5", "0.8.6"]
1212

1313
function heta_compiler_load()

src/heta_cli/heta.jl

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,14 @@ end
7373
declaration::String = "platform",
7474
units_check::Bool = false,
7575
log_mode::String = "error",
76-
debug::Bool = false
76+
log_path::String = "build.log",
77+
log_level::String = "info",
78+
debug::Bool = false,
7779
dist_dir::String = "dist",
7880
meta_dir::String = "meta",
7981
source::String = "index.heta",
80-
type::String = "heta"
81-
export_::String = nothing
82+
type::String = "heta",
83+
export_::Union{String, Nothing} = nothing,
8284
)
8385
8486
Builds the models from Heta-based platform
@@ -92,6 +94,8 @@ Arguments:
9294
- `declaration` : path to declaration file. Default is `"platform"`
9395
- `units_check` : if set to `true` units will be checked for the consistancy
9496
- `log_mode` : log mode. Default is `"error"`
97+
- `log_path` : path to the log file. Default is `"build.log"`
98+
- `log_level` : log level to display. Default is `"info"`
9599
- `debug` : turn on debug mode. Default is `false`
96100
- `dist_dir` : directory path, where to write distributives to. Default is `"dist"`
97101
- `meta_dir` : meta directory path. Default is `"meta"`
@@ -104,6 +108,8 @@ function heta_build(
104108
declaration::String = "platform",
105109
units_check::Bool = false,
106110
log_mode::String = "error",
111+
log_path::String = "build.log",
112+
log_level::String = "info",
107113
debug::Bool = false,
108114
dist_dir::String = "dist",
109115
meta_dir::String = "meta",
@@ -121,6 +127,8 @@ function heta_build(
121127
declaration != "platform" && push!(options_array, "--declaration", declaration)
122128
units_check && push!(options_array, "--units-check")
123129
log_mode != "error" && push!(options_array, "--log-mode", log_mode)
130+
log_path != "build.log" && push!(options_array, "--log-path", log_path)
131+
log_level != "info" && push!(options_array, "--log-level", log_level)
124132
debug && push!(options_array, "--debug")
125133
dist_dir != "dist" && push!(options_array, "--dist-dir", dist_dir)
126134
meta_dir != "meta" && push!(options_array, "--meta-dir", meta_dir)

0 commit comments

Comments
 (0)