From 4bea98afbb1c62a5906d26cdf9bd6de646e23e90 Mon Sep 17 00:00:00 2001 From: teutat3s <teutates@mailbox.org> Date: Thu, 6 Feb 2025 13:03:22 -0300 Subject: [PATCH] ci: use nix-fast-build to build checks --- .forgejo/workflows/check.yml | 9 +-------- flake.nix | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.forgejo/workflows/check.yml b/.forgejo/workflows/check.yml index 3479450..43a4731 100644 --- a/.forgejo/workflows/check.yml +++ b/.forgejo/workflows/check.yml @@ -27,11 +27,4 @@ jobs: build --out-link /var/lib/gitea-runner/tankstelle/.local/state/nix/results/"$target" ".#nixosConfigurations.${target}.config.system.build.toplevel" done - for check in $(nix flake show --json --all-systems | jq --raw-output ' - .checks."x86_64-linux" | - to_entries[] | - .key' - ); do - nix --print-build-logs --verbose --accept-flake-config --access-tokens '' \ - build --out-link /var/lib/gitea-runner/tankstelle/.local/state/nix/results/"$check" ".#checks.x86_64-linux.${check}" - done + nix-fast-build --no-nom --systems "aarch64-linux x86_64-linux" diff --git a/flake.nix b/flake.nix index 496599e..fe6e32e 100644 --- a/flake.nix +++ b/flake.nix @@ -99,7 +99,7 @@ devShells.default = pkgs.mkShell { buildInputs = with pkgs; [ deploy-rs - nixpkgs-fmt + nix-fast-build agenix age-plugin-yubikey cachix