mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-13 12:23:38 +01:00
build(nix): the macOS options and nix-darwin module validations are checks on every system
They take a plain pkgs and evaluate against any nixpkgs, so a Linux runner can build them. They stay in the macos-options set.
This commit is contained in:
1 parent
f05d7fe737
commit
e23bfcfb36
1 file changed
+15
-4
@@ -13,6 +13,21 @@ let
|
||||
inherit (lib') mkPkgs;
|
||||
in
|
||||
{
|
||||
# the options and the nix-darwin module are plain Nix: they take a plain `pkgs` and are evaluated on
|
||||
# every system, so that a Linux runner can check them (the ci workflow does)
|
||||
imports = [
|
||||
{
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
allChecks = {
|
||||
macos-nix-options-validation = import ./tests { inherit pkgs; };
|
||||
macos-darwin-module-validation = import ./tests/darwin-module.nix { inherit pkgs; };
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
perSystem =
|
||||
{ pkgs, system, ... }:
|
||||
let
|
||||
@@ -57,10 +72,6 @@ in
|
||||
);
|
||||
|
||||
macos-nextest = build.craneLib.cargoNextest (build.individualCrateArgs // { doCheck = true; });
|
||||
|
||||
macos-nix-options-validation = import ./tests { inherit pkgs; };
|
||||
|
||||
macos-darwin-module-validation = import ./tests/darwin-module.nix { inherit pkgs; };
|
||||
};
|
||||
|
||||
packages = {
|
||||
|
||||
Reference in new issue
Block a user