ci: fix references to attr

This commit is contained in:
Matt Sturgeon 2025-05-25 23:23:32 +01:00
parent 5853d93330
commit 032237634b
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -51,8 +51,8 @@
} }
)) ))
(lib.collect (lib.isType "check")) (lib.collect (lib.isType "check"))
(lib.groupBy' (acc: x: acc ++ [ x.build ]) [ ] (x: x.attr)) (lib.groupBy' (builds: x: builds ++ [ x.build ]) [ ] (x: x.name))
(lib.mapAttrsToList (attr: builds: { inherit attr builds; })) (lib.mapAttrsToList (name: builds: { inherit name builds; }))
# Only build one one system for non-test attrs # Only build one one system for non-test attrs
# TODO: this is very heavy handed, maybe we want some exceptions? # TODO: this is very heavy handed, maybe we want some exceptions?
@ -71,13 +71,7 @@
matrix: matrix:
matrix matrix
// { // {
builds = map ( builds = map (build: build // { attr = "checks.${build.system}.${matrix.name}"; }) matrix.builds;
build:
build
// {
attr = "checks.${build.system}.${matrix.name}";
}
) matrix.builds;
} }
)) ))
]; ];