From df94e60e8eb2307011db638886f188a152a78307 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Thu, 18 Apr 2024 23:32:55 +0200 Subject: [PATCH] perf: rewrite taskfile to accelerate build It not check nix file anymore to define if rule must be played or not --- taskfile.yaml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/taskfile.yaml b/taskfile.yaml index beafb64..c44ff2f 100644 --- a/taskfile.yaml +++ b/taskfile.yaml @@ -18,30 +18,21 @@ tasks: - "**/*.nix" build:*: - silent: true vars: TARGET: "{{index .MATCH 0}}" cmds: - nixos-rebuild --flake .#{{.TARGET}} build - sources: - - "**/*.nix" switch:*: - silent: true vars: TARGET: "{{index .MATCH 0}}" - requires: - vars: [TARGET] cmds: - - doas nixos-rebuild --flake .#{{}} switch - sources: - - "**/*.nix" + - doas nixos-rebuild --flake .#{{.TARGET}} switch + test:*: - silent: true vars: TARGET: "{{index .MATCH 0}}" cmds: - doas nixos-rebuild --flake .#{{.TARGET}} test - sources: - - "**/*.nix" +