ci: build docs in buildbot output
GitHub Actions runners lack a reusable /nix/store, so rendering the full manual, options JSON, and manpages on every docs PR pays that cost uncached. buildbot has a persistent store, so expose the docs outputs there instead and leave the GHA docs step at the lightweight maintainers check.
This commit is contained in:
parent
f3dc0b8583
commit
d8dac1f668
1 changed files with 19 additions and 6 deletions
25
flake.nix
25
flake.nix
|
|
@ -64,6 +64,15 @@
|
|||
"x86_64-linux"
|
||||
];
|
||||
|
||||
releaseInfo = nixpkgs.lib.importJSON ./release.json;
|
||||
|
||||
docsFor =
|
||||
pkgs:
|
||||
import ./docs {
|
||||
inherit pkgs;
|
||||
inherit (releaseInfo) release isReleaseBranch;
|
||||
};
|
||||
|
||||
testChunks =
|
||||
system:
|
||||
let
|
||||
|
|
@ -172,6 +181,7 @@
|
|||
buildbot = forCI (
|
||||
system:
|
||||
let
|
||||
docs = docsFor nixpkgs.legacyPackages.${system};
|
||||
allIntegrationTests = integrationTests system;
|
||||
workingIntegrationTests = nixpkgs.lib.filterAttrs (
|
||||
name: _:
|
||||
|
|
@ -181,17 +191,20 @@
|
|||
]
|
||||
) allIntegrationTests;
|
||||
in
|
||||
(testChunks system) // workingIntegrationTests
|
||||
(testChunks system)
|
||||
// workingIntegrationTests
|
||||
// {
|
||||
docs-html = docs.manual.html;
|
||||
docs-json = docs.options.json;
|
||||
docs-jsonModuleMaintainers = docs.jsonModuleMaintainers;
|
||||
docs-manpages = docs.manPages;
|
||||
}
|
||||
);
|
||||
|
||||
packages = forAllPkgs (
|
||||
pkgs:
|
||||
let
|
||||
releaseInfo = nixpkgs.lib.importJSON ./release.json;
|
||||
docs = import ./docs {
|
||||
inherit pkgs;
|
||||
inherit (releaseInfo) release isReleaseBranch;
|
||||
};
|
||||
docs = docsFor pkgs;
|
||||
hmPkg = pkgs.callPackage ./home-manager { path = "${self}"; };
|
||||
in
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue