Use remote builders
This commit is contained in:
parent
1ea27004bb
commit
5c12e0293f
|
@ -15,7 +15,7 @@
|
|||
if [[ -e "flake.nix" ]]; then
|
||||
echo "Flake detected."
|
||||
echo "Running 'flake check'"
|
||||
${pkgs.nix}/bin/nix flake check
|
||||
${pkgs.nix}/bin/nix flake check --builders @/etc/nix/machines
|
||||
echo "Running 'nix build'"
|
||||
${pkgs.nix}/bin/nix build $FLAGS
|
||||
else
|
||||
|
|
|
@ -32,8 +32,8 @@ main = do
|
|||
git "clone" repo "."
|
||||
git "checkout" (toString branch)
|
||||
say "Running checks"
|
||||
nix "flake" "check"
|
||||
nix ["build", ".#checks.x86_64-linux.system-checks", "-o", "/var/cache/gc-links/test-config"]
|
||||
nix "flake" "check" "--builders" "@/etc/nix/machines"
|
||||
nix ["build", ".#checks.x86_64-linux.system-checks", "-o", "/var/cache/gc-links/test-config", "--builders", "@/etc/nix/machines"]
|
||||
say "Checks succeeded"
|
||||
when (branch == "main") $ do
|
||||
say [i|Deploying new config to localhost.|]
|
||||
|
|
Loading…
Reference in a new issue