forked from lix-project/lix
flake: move release note checks to hydraJobs
having them in checks only does not run them in CI, which can cause
broken release notes entries to pass.
fixes #228
Change-Id: If0ba7b1be0b6525fc884a27e941cbc84b5a160f9
This commit is contained in:
parent
a33c95be5b
commit
1b5b9de04e
27
flake.nix
27
flake.nix
|
@ -219,6 +219,19 @@
|
||||||
# Binary package for various platforms.
|
# Binary package for various platforms.
|
||||||
build = forAllSystems (system: self.packages.${system}.nix);
|
build = forAllSystems (system: self.packages.${system}.nix);
|
||||||
|
|
||||||
|
rl-next = forAllSystems (system:
|
||||||
|
let
|
||||||
|
rl-next-check = name: dir:
|
||||||
|
let pkgs = nixpkgsFor.${system}.native;
|
||||||
|
in pkgs.buildPackages.runCommand "test-${name}-release-notes" { } ''
|
||||||
|
LANG=C.UTF-8 ${lib.getExe pkgs.build-release-notes} ${dir} >$out
|
||||||
|
'';
|
||||||
|
in
|
||||||
|
{
|
||||||
|
user = rl-next-check "rl-next" ./doc/manual/rl-next;
|
||||||
|
dev = rl-next-check "rl-next-dev" ./doc/manual/rl-next-dev;
|
||||||
|
});
|
||||||
|
|
||||||
# FIXME(Qyriad): remove this when the migration to Meson has been completed.
|
# FIXME(Qyriad): remove this when the migration to Meson has been completed.
|
||||||
# NOTE: mesonBuildClang depends on mesonBuild depends on build to avoid OOMs
|
# NOTE: mesonBuildClang depends on mesonBuild depends on build to avoid OOMs
|
||||||
# on aarch64 builders caused by too many parallel compiler/linker processes.
|
# on aarch64 builders caused by too many parallel compiler/linker processes.
|
||||||
|
@ -340,21 +353,17 @@
|
||||||
}) pre-commit-hooks.lib;
|
}) pre-commit-hooks.lib;
|
||||||
};
|
};
|
||||||
|
|
||||||
checks = forAllSystems (system: let
|
# NOTE *do not* add fresh derivations to checks, always add them to
|
||||||
rl-next-check = name: dir:
|
# hydraJobs first (so CI will pick them up) and only link them here
|
||||||
let pkgs = nixpkgsFor.${system}.native;
|
checks = forAllSystems (system: {
|
||||||
in pkgs.buildPackages.runCommand "test-${name}-release-notes" { } ''
|
|
||||||
LANG=C.UTF-8 ${lib.getExe pkgs.build-release-notes} ${dir} >$out
|
|
||||||
'';
|
|
||||||
in {
|
|
||||||
# FIXME(Qyriad): remove this when the migration to Meson has been completed.
|
# FIXME(Qyriad): remove this when the migration to Meson has been completed.
|
||||||
mesonBuild = self.hydraJobs.mesonBuild.${system};
|
mesonBuild = self.hydraJobs.mesonBuild.${system};
|
||||||
mesonBuildClang = self.hydraJobs.mesonBuildClang.${system};
|
mesonBuildClang = self.hydraJobs.mesonBuildClang.${system};
|
||||||
binaryTarball = self.hydraJobs.binaryTarball.${system};
|
binaryTarball = self.hydraJobs.binaryTarball.${system};
|
||||||
perlBindings = self.hydraJobs.perlBindings.${system};
|
perlBindings = self.hydraJobs.perlBindings.${system};
|
||||||
nixpkgsLibTests = self.hydraJobs.tests.nixpkgsLibTests.${system};
|
nixpkgsLibTests = self.hydraJobs.tests.nixpkgsLibTests.${system};
|
||||||
rl-next = rl-next-check "rl-next" ./doc/manual/rl-next;
|
rl-next = self.hydraJobs.tests.nixpkgsLibTests.${system}.user;
|
||||||
rl-next-dev = rl-next-check "rl-next-dev" ./doc/manual/rl-next-dev;
|
rl-next-dev = self.hydraJobs.tests.nixpkgsLibTests.${system}.dev;
|
||||||
pre-commit = self.hydraJobs.pre-commit.${system};
|
pre-commit = self.hydraJobs.pre-commit.${system};
|
||||||
} // (lib.optionalAttrs (builtins.elem system linux64BitSystems)) {
|
} // (lib.optionalAttrs (builtins.elem system linux64BitSystems)) {
|
||||||
dockerImage = self.hydraJobs.dockerImage.${system};
|
dockerImage = self.hydraJobs.dockerImage.${system};
|
||||||
|
|
Loading…
Reference in a new issue