Skip to content

Commit 5589b90

Browse files
authored
nix-builder: support building CI per framework (#525)
1 parent 42d031c commit 5589b90

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

nix-builder/lib/gen-flake-outputs.nix

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,24 @@ in
246246
rev = revUnderscored;
247247
};
248248

249+
backendCi =
250+
let
251+
backends = lib.unique (map (set: set.buildConfig.framework) buildSetsSorted);
252+
in
253+
builtins.listToAttrs (
254+
builtins.map (backend: {
255+
name = backend;
256+
value = build.mkExtensionBundle {
257+
inherit path doGetKernelCheck;
258+
# It is too costly to build all variants in CI, so we just build one per framework.
259+
buildSets = headOrEmpty (
260+
builtins.filter (set: set.buildConfig.framework == backend) buildSetsSorted
261+
);
262+
rev = revUnderscored;
263+
};
264+
}) backends
265+
);
266+
249267
ci-test = ciTests.${bestVariant};
250268

251269
kernels =

0 commit comments

Comments
 (0)