test refc in CI in Nim 2.0 and later (#85)

This commit is contained in:
tersec 2024-02-14 02:07:14 +00:00 committed by GitHub
parent a6bdf41e9c
commit da49e0e0c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
# json-serialization # json-serialization
# Copyright (c) 2023 Status Research & Development GmbH # Copyright (c) 2023-2024 Status Research & Development GmbH
# Licensed under either of # Licensed under either of
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
# * MIT license ([LICENSE-MIT](LICENSE-MIT)) # * MIT license ([LICENSE-MIT](LICENSE-MIT))
@ -36,6 +36,8 @@ proc build(args, path: string) =
proc run(args, path: string) = proc run(args, path: string) =
build args & " -r", path build args & " -r", path
if (NimMajor, NimMinor) > (1, 6):
build args & " --mm:refc -r", path
task test, "Run all tests": task test, "Run all tests":
for threads in ["--threads:off", "--threads:on"]: for threads in ["--threads:off", "--threads:on"]: