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 e56c497 commit 624069d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,13 @@ 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:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
- run: nix build '.#nixosConfigurations."${{ 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 @@ -5,9 +5,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 624069d

Please sign in to comment.