mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
flake: move documentation building from CI to flake check
This commit is contained in:
parent
eecd2ab3ce
commit
e8d6b60a2b
2 changed files with 26 additions and 20 deletions
1
.github/workflows/check.yml
vendored
1
.github/workflows/check.yml
vendored
|
@ -21,4 +21,3 @@ jobs:
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
- run: nix flake check --all-systems --builders ""
|
- run: nix flake check --all-systems --builders ""
|
||||||
- run: nix flake check --all-systems --builders "" ./templates/_wrapper/simple --no-write-lock-file
|
- run: nix flake check --all-systems --builders "" ./templates/_wrapper/simple --no-write-lock-file
|
||||||
- run: nix build .#docs --show-trace --builders ""
|
|
||||||
|
|
|
@ -1,31 +1,38 @@
|
||||||
{
|
{
|
||||||
perSystem = {
|
perSystem = {
|
||||||
pkgs,
|
pkgs,
|
||||||
|
config,
|
||||||
makeNixvimWithModuleUnfree,
|
makeNixvimWithModuleUnfree,
|
||||||
makeNixvimWithModule,
|
makeNixvimWithModule,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
checks = {
|
checks =
|
||||||
tests = import ../tests {
|
{
|
||||||
inherit pkgs;
|
tests = import ../tests {
|
||||||
inherit (pkgs) lib;
|
inherit pkgs;
|
||||||
makeNixvim = configuration:
|
inherit (pkgs) lib;
|
||||||
makeNixvimWithModuleUnfree {
|
makeNixvim = configuration:
|
||||||
module = {
|
makeNixvimWithModuleUnfree {
|
||||||
config = configuration;
|
module = {
|
||||||
|
config = configuration;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
extra-args-tests = import ../tests/extra-args.nix {
|
extra-args-tests = import ../tests/extra-args.nix {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
inherit makeNixvimWithModule;
|
inherit makeNixvimWithModule;
|
||||||
};
|
};
|
||||||
|
|
||||||
lib-tests = import ../tests/lib-tests.nix {
|
lib-tests = import ../tests/lib-tests.nix {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
inherit (pkgs) lib;
|
inherit (pkgs) lib;
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
# Do not check if documentation builds fine on darwin as it fails:
|
||||||
|
# > sandbox-exec: pattern serialization length 69298 exceeds maximum (65535)
|
||||||
|
// (pkgs.lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
|
||||||
|
inherit (config.packages) docs;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue