Skip to content

Commit cfb4785

Browse files
committed
flake.nix: restore checks
1 parent a40da89 commit cfb4785

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
@@ -128,15 +128,14 @@
128128
else result
129129
) {} (builtins.attrNames self.nixosConfigurations);
130130

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

134133
# hydraJobs are checks
135134
hydraJobs = builtins.mapAttrs (_: check:
136135
(nixpkgs.lib.recursiveUpdate check {
137136
meta.timeout = 12 * 60 * 60;
138137
})
139-
) (import ./checks { inherit self nixpkgs system; });
138+
) self.checks.${system};
140139
}) // {
141140
lib = import ./lib { nixpkgs-lib = nixpkgs.lib; };
142141

0 commit comments

Comments
 (0)