mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
fbbe972898
Motivated by ofborg struggling [1] and its evaluations taking too long, inspired by Jörg's initial PR [2] and Adam's previous attempt to parallelise Nixpkgs evaluation [3], this PR contains initial work to relief ofborg from its evaluation duty by using GitHub Actions to evaluate Nixpkgs. For now this doesn't take care of all of what ofborg does, such as requesting appropriate reviewers or labeling mass rebuilds, but this can be follow-up work. [1]: https://discourse.nixos.org/t/infrastructure-announcement-the-future-of-ofborg-your-help-needed/56025?u=infinisil [2]: https://github.com/NixOS/nixpkgs/pull/352808 [3]: https://github.com/NixOS/nixpkgs/pull/269403 Co-Authored-By: Jörg Thalheim <joerg@thalheim.io> Co-Authored-By: Adam Joseph <adam@westernsemico.com>
19 lines
648 B
Nix
19 lines
648 B
Nix
{ # The pkgs used for dependencies for the testing itself
|
|
# Don't test properties of pkgs.lib, but rather the lib in the parent directory
|
|
pkgs ? import ../.. {} // { lib = throw "pkgs.lib accessed, but the lib tests should use nixpkgs' lib path directly!"; },
|
|
nix ? pkgs-nixVersions.stable,
|
|
nixVersions ? [ pkgs-nixVersions.minimum nix pkgs-nixVersions.latest ],
|
|
pkgs-nixVersions ? import ./nix-for-tests.nix { inherit pkgs; },
|
|
}:
|
|
|
|
let
|
|
lib = import ../.;
|
|
testWithNix = nix:
|
|
import ./test-with-nix.nix { inherit lib nix pkgs; };
|
|
|
|
in
|
|
pkgs.symlinkJoin {
|
|
name = "nixpkgs-lib-tests";
|
|
paths = map testWithNix nixVersions;
|
|
}
|