mirror of
https://github.com/cachix/install-nix-action.git
synced 2025-06-08 01:54:27 +00:00
allow binary caches for runner user
This commit is contained in:
parent
15adaed2d7
commit
9420096b1d
3 changed files with 9 additions and 4 deletions
|
@ -30,6 +30,8 @@ function run() {
|
|||
yield exec.exec("sudo", ["sh", "-c", "echo http2 = false >> /etc/nix/nix.conf"]);
|
||||
// Set jobs to number of cores
|
||||
yield exec.exec("sudo", ["sh", "-c", "echo max-jobs = auto >> /etc/nix/nix.conf"]);
|
||||
// Allow binary caches for runner user
|
||||
yield exec.exec("sudo", ["sh", "-c", "echo trusted-users = root runner >> /etc/nix/nix.conf"]);
|
||||
// Catalina workaround https://github.com/NixOS/nix/issues/2925
|
||||
if (os_1.type() == "Darwin") {
|
||||
yield exec.exec("sudo", ["sh", "-c", `echo \"nix\t${INSTALL_PATH}\" >> /etc/synthetic.conf`]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue