mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 01:53:15 -06:00
add basic time reporter
This commit is contained in:
parent
88026e1ff7
commit
ec6bc91504
2 changed files with 10 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
input,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
|
@ -19,6 +19,7 @@
|
|||
environment.systemPackages = with pkgs; [
|
||||
nix-output-monitor
|
||||
alejandra
|
||||
inputs.self.packages.${pkgs.system}.styx
|
||||
];
|
||||
|
||||
nix.settings = {
|
||||
|
|
8
styx
8
styx
|
@ -69,11 +69,19 @@ dry() {
|
|||
nix build "$FLAKE_PATH#nixosConfigurations.$(hostname).config.system.build.toplevel" --dry-run
|
||||
}
|
||||
|
||||
|
||||
cache() {
|
||||
start=$(date +%s)
|
||||
|
||||
cachix watch-exec daylin \
|
||||
-- \
|
||||
nix build "$FLAKE_PATH#nixosConfigurations.${HOSTNAME}.config.system.build.toplevel" \
|
||||
--print-build-logs
|
||||
|
||||
end=$(date +%s)
|
||||
runtime=$(date -d@$((end-start)) +'%M minutes, %S seconds')
|
||||
|
||||
echo "Built host: ${HOSTNAME} in ${runtime} seconds" >> "$GITHUB_OUTPUT_SUMMARY"
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue