From 910d7fbef7c2d13327109c0ed6cc93f2681432d6 Mon Sep 17 00:00:00 2001 From: NullBite Date: Tue, 4 Feb 2025 12:11:12 -0500 Subject: [PATCH] actions: use nix-fast-build --- .github/workflows/proactive-update.yaml | 8 ++++---- flake.nix | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/proactive-update.yaml b/.github/workflows/proactive-update.yaml index fd2c39d..2eff9c8 100644 --- a/.github/workflows/proactive-update.yaml +++ b/.github/workflows/proactive-update.yaml @@ -22,7 +22,7 @@ jobs: # free useless disk space - run: 'bash ci/util_free_space_extreme.sh' - run: 'nix flake update' - - run: 'nix build .#nixosConfigurations.rpi4.config.system.build.toplevel' + - run: 'nix develop .#ci --command nix-fast-build --no-nom --skip-cache -f .#nixosConfigurations.rpi4.config.system.build.toplevel' build_x86: runs-on: ubuntu-24.04 @@ -38,6 +38,6 @@ jobs: # free useless disk space - run: 'bash ci/util_free_space_extreme.sh' - run: 'nix flake update' - - run: 'nix build .#nixosConfigurations.nullbox.config.system.build.toplevel' - - run: 'nix build .#nixosConfigurations.slab.config.system.build.toplevel' - - run: 'nix build .#nixosConfigurations.nixos-wsl.config.system.build.toplevel' + - run: 'nix develop .#ci --command nix-fast-build --no-nom --skip-cache -f .#nixosConfigurations.nullbox.config.system.build.toplevel' + - run: 'nix develop .#ci --command nix-fast-build --no-nom --skip-cache -f .#nixosConfigurations.slab.config.system.build.toplevel' + - run: 'nix develop .#ci --command nix-fast-build --no-nom --skip-cache -f .#nixosConfigurations.nixos-wsl.config.system.build.toplevel' diff --git a/flake.nix b/flake.nix index fb46d1b..de0b107 100644 --- a/flake.nix +++ b/flake.nix @@ -343,6 +343,12 @@ devShells = eachSystem (system: let pkgs = import nixpkgs-unstable { inherit system; }; in { + ci = pkgs.mkShell { + buildInputs = with pkgs; [ + nix-update + nix-fast-build + ]; + }; default = pkgs.mkShell { buildInputs = with pkgs; [ nix-update