Make builds more stable with upload name
This commit is contained in:
@@ -17,12 +17,13 @@
|
||||
package = pkgs.nixStable;
|
||||
|
||||
settings = {
|
||||
cores = 0; # Use all cores for builds
|
||||
download-buffer-size = 500 * 1024 * 1024;
|
||||
experimental-features = "nix-command flakes";
|
||||
keep-outputs = true;
|
||||
keep-derivations = true;
|
||||
min-free = (toString (1024 * 1024 * 1024));
|
||||
max-free = (toString (5 * 1024 * 1024 * 1024));
|
||||
cores = 0; # Use all cores for builds
|
||||
trusted-users = [
|
||||
"greg"
|
||||
"gregory.hellings"
|
||||
|
||||
@@ -53,8 +53,9 @@ with lib;
|
||||
);
|
||||
uploadRunner = getExe (
|
||||
pkgs.writeShellScriptBin "uploade-to-cache-runner.sh" ''
|
||||
sum=$(printf "$OUT_PATHS" | ${lib.getExe' pkgs.coreutils-full "sha256sum"})
|
||||
${lib.getExe' config.systemd.package "systemd-run"} \
|
||||
--unit "upload-$(${lib.getExe' pkgs.coreutils "date"} +%s%3N)" \
|
||||
--unit "upload-$(${lib.getExe' pkgs.coreutils "date"} +%s%3N)-$sum" \
|
||||
--property Type=exec \
|
||||
--property CollectMode=inactive \
|
||||
--property Group=nixbld \
|
||||
|
||||
Reference in New Issue
Block a user