Skip to content

Commit

Permalink
flake.nix: restore checks
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed Feb 26, 2024
1 parent 974f262 commit bec6378
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
- name: Evaluate hydraJobs
- name: Evaluate checks
id: eval-jobs
run: |
MATRIX=$(nix eval \
--accept-flake-config \
--json \
.#hydraJobs.x86_64-linux --apply builtins.attrNames \
.#checks.x86_64-linux --apply builtins.attrNames \
)
echo "matrix=$MATRIX" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
- check: qemu-overlay-systemd-startup-shutdown
runs-on: ubuntu-latest
env:
NIX_ATTR: 'hydraJobs.x86_64-linux.${{ matrix.check }}'
NIX_ATTR: 'checks.x86_64-linux.${{ matrix.check }}'
steps:
- name: Enable KVM group perms
run: |
Expand Down
5 changes: 2 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,14 @@
else result
) {} (builtins.attrNames self.nixosConfigurations);

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

# hydraJobs are checks
hydraJobs = builtins.mapAttrs (_: check:
(nixpkgs.lib.recursiveUpdate check {
meta.timeout = 12 * 60 * 60;
})
) (import ./checks { inherit self nixpkgs system; });
) self.checks.${system};
}) // {
lib = import ./lib { nixpkgs-lib = nixpkgs.lib; };

Expand Down

0 comments on commit bec6378

Please sign in to comment.