summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2023-04-13 17:52:24 +0800
committerGitHub <noreply@github.com>2023-04-13 11:52:24 +0200
commitc33ab0ba38408fc806b44246a3d393640d6fc9cb (patch)
tree8d2f0207e3e63093f2884d5eb4f7630e9ea7f952
parent1ed54b7718eb373d1314269578ef4c9386aec96e (diff)
downloadNim-c33ab0ba38408fc806b44246a3d393640d6fc9cb.tar.gz
stops building nimsuggest twice and nim_dbg in tests; saves 3 * 5 minutes CI time (#21654)
stop building nimsuggest twice and nim_dbg in tests; saving 3 * 5 minutes CI time
-rw-r--r--koch.nim10
1 files changed, 9 insertions, 1 deletions
diff --git a/koch.nim b/koch.nim
index 52378e43f..d89d9fc93 100644
--- a/koch.nim
+++ b/koch.nim
@@ -229,6 +229,14 @@ proc buildTools(args: string = "") =
   nimCompileFold("Compile atlas", "tools/atlas/atlas.nim", options = "-d:release " & args,
       outputName = "atlas")
 
+proc testTools(args: string = "") =
+  nimCompileFold("Compile nimgrep", "tools/nimgrep.nim",
+                 options = "-d:release " & args)
+  when defined(windows): buildVccTool(args)
+  bundleNimpretty(args)
+  nimCompileFold("Compile testament", "testament/testament.nim", options = "-d:release " & args)
+  nimCompileFold("Compile atlas", "tools/atlas/atlas.nim", options = "-d:release " & args,
+      outputName = "atlas")
 
 proc nsis(latest: bool; args: string) =
   bundleNimbleExe(latest, args)
@@ -546,7 +554,7 @@ proc runCI(cmd: string) =
     nimCompileFold("Compile testament", "testament/testament.nim", options = "-d:release")
     execFold("Test selected Nimble packages", "testament $# pcat nimble-packages" % batchParam)
   else:
-    buildTools()
+    testTools()
 
     for a in "zip opengl sdl1 jester@#head".split:
       let buildDeps = "build"/"deps" # xxx factor pending https://github.com/timotheecour/Nim/issues/616