Skip to content

Commit

Permalink
require Nim 2.0 (#97)
Browse files Browse the repository at this point in the history
* require Nim 2.0

* specifically require 2.0.10
  • Loading branch information
tersec authored Oct 3, 2024
1 parent 7d491f6 commit 11b390a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ssz_serialization.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description = "Simple Serialize (SSZ) serialization and merkleization"
license = "Apache License 2.0"
skipDirs = @["tests"]

requires "nim >= 1.6.0",
requires "nim >= 2.0.10",
"serialization",
"json_serialization",
"stew",
Expand Down Expand Up @@ -35,16 +35,14 @@ proc build(args, path: string) =

proc run(args, path: string) =
build args & " --mm:refc -r", path
if (NimMajor, NimMinor) > (1, 6):
build args & " --mm:orc -r", path
build args & " --mm:orc -r", path

task test, "Run all tests":
for blst in [false, true]:
for hashtree in [false, true]:
let opts = "--threads:on -d:PREFER_BLST_SHA256=" & $blst & " -d:PREFER_HASHTREE_SHA256=" & $hashtree
run "--mm:refc " & opts, "tests/test_all"
if (NimMajor, NimMinor) > (1, 6):
run "--mm:orc " & opts, "tests/test_all"
run "--mm:orc " & opts, "tests/test_all"

task fuzzHashtree, "Run fuzzing test":
# TODO We don't run because the timeout parameter doesn't seem to work so
Expand Down

0 comments on commit 11b390a

Please sign in to comment.