actions: use nix-fast-build

This commit is contained in:
NullBite 2025-02-04 12:11:12 -05:00
parent 296a5505a3
commit 910d7fbef7
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
2 changed files with 10 additions and 4 deletions

View File

@ -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'

View File

@ -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