workaround space usage in CI
Jörg Thalheim committed
Aug 18, 2024 at 17:01 UTC
20a75dab0c8cd26744558bd9cb70cc21f4b73afb
2 files changed
+18
-3
.github/workflows/ci.yml
+13
@@ -19,3 +19,16 @@ jobs:
19
- uses: actions/checkout@v4
20
- uses: cachix/install-nix-action@v27
21
- run: nix run github:Mic92/nix-fast-build -- --no-nom
22
+ # all builds combined consume too much disk space... we should soon switch to something else
23
+ nixos:
24
+ runs-on: ubuntu-latest
25
+ strategy:
26
+ matrix:
27
+ # we actually cannot build umbriel just now
28
+ # but it also looks like it doesn't run important stuff
29
+ #machine: [caliban, umbriel]
30
+ machine: [caliban]
31
+ steps:
32
+ - uses: actions/checkout@v4
33
+ - uses: cachix/install-nix-action@v27
34
+ - run: nix build '.#nixosConfigurations."${{ matrix.machine }}.nixos.org".config.system.build.toplevel'
checks/flake-module.nix
+5
-3
@@ -5,9 +5,11 @@
5
{
6
checks =
7
let
8
- nixosMachines = lib.mapAttrs' (
9
- name: config: lib.nameValuePair "nixos-${name}" config.config.system.build.toplevel
10
- ) ((lib.filterAttrs (_: config: config.pkgs.system == system)) self.nixosConfigurations);
8
+ # TODO: our CI doesn't have a enough space for these just now
9
+ #nixosMachines = lib.mapAttrs' (
10
+ # name: config: lib.nameValuePair "nixos-${name}" config.config.system.build.toplevel
11
+ #) ((lib.filterAttrs (_: config: config.pkgs.system == system)) self.nixosConfigurations);
12
+ nixosMachines = { };
13
14
packages = lib.mapAttrs' (n: lib.nameValuePair "package-${n}") self'.packages;
15
devShells = lib.mapAttrs' (n: lib.nameValuePair "devShell-${n}") self'.devShells;