This commit is contained in:
Jon Eugster
2023-12-09 11:14:55 +01:00
parent cb7224934c
commit f6738faf46
+1 -11
View File
@@ -24,14 +24,4 @@ post_update pkg do
let rootPkg ← getRootPackage
if rootPkg.name = pkg.name then
return -- do not run in GameServer itself
/-
TODO: Could we use the Lake API instead of spawning a new process?
-/
let toolchain := ← IO.FS.readFile <| pkg.dir / "lean-toolchain"
let exitCode ← IO.Process.spawn {
cmd := "elan"
args := #["run", toolchain.trim, "lake", "build", "gameserver"]
} >>= (·.wait)
if exitCode ≠ 0 then
logError s!"{pkg.name}: failed to build gameserver"
discard <| runBuild gameserver.build >>= (·.await)