fix #5: set max-jobs = auto
This commit is contained in:
		| @@ -13,7 +13,10 @@ async function run() { | ||||
|  | ||||
|     // Workaround a segfault: https://github.com/NixOS/nix/issues/2733 | ||||
|     await exec.exec("sudo", ["mkdir", "-p", "/etc/nix"]); | ||||
|     await exec.exec("sudo", ["echo", "http2 = false", ">>", "/etc/nix/nix.conf"]); | ||||
|     await exec.exec("sudo", ["sh", "-c", "echo http2 = false >> /etc/nix/nix.conf"]); | ||||
|  | ||||
|     // Set jobs to number of cores | ||||
|     await exec.exec("sudo", ["sh", "-c", "echo max-jobs = auto >> /etc/nix/nix.conf"]); | ||||
|  | ||||
|     // TODO: retry due to all the things that go wrong | ||||
|     const nixInstall = await tc.downloadTool('https://nixos.org/nix/install'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user