actions: use nix-fast-build
This commit is contained in:
parent
296a5505a3
commit
910d7fbef7
8
.github/workflows/proactive-update.yaml
vendored
8
.github/workflows/proactive-update.yaml
vendored
@ -22,7 +22,7 @@ jobs:
|
|||||||
# free useless disk space
|
# free useless disk space
|
||||||
- run: 'bash ci/util_free_space_extreme.sh'
|
- run: 'bash ci/util_free_space_extreme.sh'
|
||||||
- run: 'nix flake update'
|
- 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:
|
build_x86:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
@ -38,6 +38,6 @@ jobs:
|
|||||||
# free useless disk space
|
# free useless disk space
|
||||||
- run: 'bash ci/util_free_space_extreme.sh'
|
- run: 'bash ci/util_free_space_extreme.sh'
|
||||||
- run: 'nix flake update'
|
- run: 'nix flake update'
|
||||||
- run: 'nix build .#nixosConfigurations.nullbox.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 build .#nixosConfigurations.slab.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 build .#nixosConfigurations.nixos-wsl.config.system.build.toplevel'
|
- run: 'nix develop .#ci --command nix-fast-build --no-nom --skip-cache -f .#nixosConfigurations.nixos-wsl.config.system.build.toplevel'
|
||||||
|
@ -343,6 +343,12 @@
|
|||||||
devShells = eachSystem (system: let
|
devShells = eachSystem (system: let
|
||||||
pkgs = import nixpkgs-unstable { inherit system; };
|
pkgs = import nixpkgs-unstable { inherit system; };
|
||||||
in {
|
in {
|
||||||
|
ci = pkgs.mkShell {
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
nix-update
|
||||||
|
nix-fast-build
|
||||||
|
];
|
||||||
|
};
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
nix-update
|
nix-update
|
||||||
|
Loading…
x
Reference in New Issue
Block a user