mirror of
https://codeberg.org/icewind/attic-action.git
synced 2026-06-03 17:44:07 +02:00
commit
7fe7f51850
2 changed files with 3 additions and 5 deletions
|
|
@ -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}`);
|
||||||
|
|
|
||||||
4
test.nix
4
test.nix
|
|
@ -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)}
|
|
||||||
''
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue