Skip to content

Commit

Permalink
workaround space usage in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Aug 18, 2024
1 parent 90c0a42 commit 3ae5023
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,11 @@ jobs:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
- run: nix run github:Mic92/nix-fast-build -- --no-nom
# all builds combined consume too much disk space... we should soon switch to something else
nixos:
runs-on: ubuntu-latest
strategy:
matrix:
machine: [caliban, umbriel]
steps:
- run: nixos-rebuild build --flake .#"${{ matrix.machine }}.nixos.org"
8 changes: 5 additions & 3 deletions checks/flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
{
checks =
let
nixosMachines = lib.mapAttrs' (
name: config: lib.nameValuePair "nixos-${name}" config.config.system.build.toplevel
) ((lib.filterAttrs (_: config: config.pkgs.system == system)) self.nixosConfigurations);
# TODO: our CI doesn't have a enough space for these just now
#nixosMachines = lib.mapAttrs' (
# name: config: lib.nameValuePair "nixos-${name}" config.config.system.build.toplevel
#) ((lib.filterAttrs (_: config: config.pkgs.system == system)) self.nixosConfigurations);
nixosMachines = {};

packages = lib.mapAttrs' (n: lib.nameValuePair "package-${n}") self'.packages;
devShells = lib.mapAttrs' (n: lib.nameValuePair "devShell-${n}") self'.devShells;
Expand Down

0 comments on commit 3ae5023

Please sign in to comment.