srid / nixci

Define and build CI for Nix projects anywhere; superceded by Omnix https://omnix.page/om/ci.html
GNU Affero General Public License v3.0
109 stars 5 forks source link

Support for perSystem filtering #2

Closed srid closed 10 months ago

srid commented 1 year ago

Certain subflakes can build only on certain systems.

cf. https://github.com/srid/nixos-flake/pull/30

srid commented 1 year ago

Sometimes a drv will build only on NixOS, but not on other Linux (see https://github.com/orgs/community/discussions/8305); such as when using nixosTest. Do we want to account for this use case?

srid commented 10 months ago

Proposed solution: add an explicit systems whitelist (by default, it builds on all):

nixci.default = {
  macos = {
    inherit overrideInputs;
    dir = "examples/macos";
    systems = [ "aarch64-darwin" "x86_64-darwin" ];
  };
}

Then fix the CI issue on https://github.com/srid/nixos-flake/pull/39