This commit is contained in:
Domen Kožar 2019-10-03 15:33:27 +02:00
commit e1972a3e88
No known key found for this signature in database
GPG key ID: C2FFBCAFD2C24246
2 changed files with 3 additions and 5 deletions

View file

@ -37,12 +37,12 @@ async function run() {
}, },
} }
}; };
const args = prependEach('-A', nonEmptySplit(attributes, /\s/)).concat([file || "default.nix"]); const args = prependEach('-A', nonEmptySplit(attributes, /\s+/)).concat([file || "default.nix"]);
await exec.exec('nix-build', args, options); await exec.exec('nix-build', args, options);
core.endGroup() core.endGroup()
core.startGroup(`Cachix: pushing to ` + name); core.startGroup(`Cachix: pushing to ` + name);
await exec.exec('cachix', ['push', name].concat(nonEmptySplit(paths, /\s/).join(' '))); await exec.exec('cachix', ['push', name].concat(nonEmptySplit(paths, /\s+/)));
core.endGroup() core.endGroup()
} catch (error) { } catch (error) {
core.setFailed(`Action failed with error: ${error}`); core.setFailed(`Action failed with error: ${error}`);

View file

@ -10,6 +10,4 @@ let
drv = i: runCommand "${toString currentTime}-${toString i}" {} '' drv = i: runCommand "${toString currentTime}-${toString i}" {} ''
dd if=/dev/zero of=$out bs=${toString size}MB count=1 dd if=/dev/zero of=$out bs=${toString size}MB count=1
''; '';
in writeText "empty-${toString num}-${toString size}MB" '' in lib.listToAttrs (builtins.map (i: lib.nameValuePair "drv${toString i}" (drv i)) (lib.range 1 num))
${lib.concatMapStringsSep "" drv (lib.range 1 num)}
''