Skip to content

Commit 8d5870b

Browse files
committed
flake.nix: restore checks
1 parent 66a0373 commit 8d5870b

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414
- uses: cachix/install-nix-action@v25
15-
- name: Evaluate hydraJobs
15+
- name: Evaluate checks
1616
id: eval-jobs
1717
run: |
1818
MATRIX=$(nix eval \
1919
--accept-flake-config \
2020
--json \
21-
.#hydraJobs.x86_64-linux --apply builtins.attrNames \
21+
.#checks.x86_64-linux --apply builtins.attrNames \
2222
)
2323
echo "matrix=$MATRIX" >> $GITHUB_OUTPUT
2424
@@ -63,7 +63,7 @@ jobs:
6363
- check: qemu-overlay-systemd-startup-shutdown
6464
runs-on: ubuntu-latest
6565
env:
66-
NIX_ATTR: 'hydraJobs.x86_64-linux.${{ matrix.check }}'
66+
NIX_ATTR: 'checks.x86_64-linux.${{ matrix.check }}'
6767
steps:
6868
- name: Enable KVM group perms
6969
run: |

flake.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,14 @@
135135
else result
136136
) {} (builtins.attrNames self.nixosConfigurations);
137137

138-
# Takes too much memory in `nix flake show`
139-
# checks = import ./checks { inherit self nixpkgs system; };
138+
checks = import ./checks { inherit self nixpkgs system; };
140139

141140
# hydraJobs are checks
142141
hydraJobs = builtins.mapAttrs (_: check:
143142
(nixpkgs.lib.recursiveUpdate check {
144143
meta.timeout = 12 * 60 * 60;
145144
})
146-
) (import ./checks { inherit self nixpkgs system; });
145+
) self.checks.${system};
147146
}) // {
148147
lib = import ./lib { inherit (nixpkgs) lib; };
149148

0 commit comments

Comments
 (0)