Skip to content

Commit

Permalink
only show checks for x86_64-linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ibizaman committed Oct 24, 2024
1 parent a94ed38 commit 49a962b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,14 @@

checks =
let
inherit (pkgs.lib) foldl foldlAttrs mergeAttrs optionalAttrs;

importFiles = files:
map (m: pkgs.callPackage m {}) files;

mergeTests = pkgs.lib.lists.foldl pkgs.lib.trivial.mergeAttrs {};
mergeTests = foldl mergeAttrs {};

flattenAttrs = root: attrset: pkgs.lib.attrsets.foldlAttrs (acc: name: value: acc // {
flattenAttrs = root: attrset: foldlAttrs (acc: name: value: acc // {
"${root}_${name}" = value;
}) {} attrset;

Expand All @@ -96,7 +98,7 @@
);

shblib = pkgs.callPackage ./lib {};
in (rec {
in (optionalAttrs (system == "x86_64-linux") ({
modules = shblib.check {
inherit pkgs;
tests =
Expand Down Expand Up @@ -135,7 +137,7 @@
// (vm_test "ssl" ./test/blocks/ssl.nix)

// (vm_test "contracts-secret" ./test/contracts/secret.nix)
);
));
}
) // {
herculesCI.ciSystems = [ "x86_64-linux" ];
Expand Down

0 comments on commit 49a962b

Please sign in to comment.