File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 11{
2+ lib ,
23 self ,
34 inputs ,
45 helpers ,
1516
1617 # Output a build matrix for CI
1718 flake . githubActions = inputs . nix-github-actions . lib . mkGithubMatrix {
18- inherit ( self ) checks ;
19+ checks = builtins . mapAttrs (
20+ system :
21+ lib . flip lib . pipe [
22+ lib . attrsToList
23+ # Group the "test-N" tests back into one drv
24+ # FIXME: drop the entire test-grouping system
25+ ( builtins . groupBy ( { name , value } : if lib . strings . hasPrefix "test-" name then "test" else name ) )
26+ ( builtins . mapAttrs (
27+ group : tests :
28+ let
29+ pkgs = inputs . nixpkgs . legacyPackages . ${ system } ;
30+ singleton = ( builtins . head tests ) . value ;
31+ joined = pkgs . linkFarmFromDrvs group ( builtins . listToAttrs tests ) ;
32+ in
33+ if builtins . length tests > 1 then joined else singleton
34+ ) )
35+ ]
36+ ) self . checks ;
1937 } ;
2038}
You can’t perform that action at this time.
0 commit comments