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

This commit is contained in:
tersec 2024-02-14 03:35:28 +00:00 committed by GitHub
parent bb1ab544fc
commit 16de7e7f5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,8 @@ proc build(args, path, outdir: string) =
proc run(args, path, outdir: string) = proc run(args, path, outdir: string) =
build args & " -r", path, outdir build args & " -r", path, outdir
if (NimMajor, NimMinor) > (1, 6):
build args & " --mm:refc -r", path, outdir
task test_keyfile, "Run keyfile tests": task test_keyfile, "Run keyfile tests":
run "-d:release", "tests/keyfile/all_tests", "keyfile" run "-d:release", "tests/keyfile/all_tests", "keyfile"