From 7640cc6aa859f6d4ad657c892f14c76dc1d34bd5 Mon Sep 17 00:00:00 2001 From: tersec Date: Wed, 14 Feb 2024 01:08:57 +0000 Subject: [PATCH] test refc in CI in Nim 2.0 and later (#55) --- bearssl.nimble | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bearssl.nimble b/bearssl.nimble index b37522e..9047b7b 100644 --- a/bearssl.nimble +++ b/bearssl.nimble @@ -25,8 +25,10 @@ proc build(args, path: string) = proc run(args, path: string) = build args & " -r", path + if (NimMajor, NimMinor) > (1, 6): + build args & " --mm:refc -r", path -import strutils +from std/strutils import endsWith task test, "Run tests": for path in listFiles("tests"):