mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
release-cross: Use the same genAttrs logic for testOnCross
as testOn
Eventually we'll want to test cross-compiling *from* various platforms. For now, its good to be consistent.
This commit is contained in:
parent
74753d01f8
commit
db0dbd0b81
@ -1,4 +1,4 @@
|
|||||||
with import ./release-lib.nix { supportedSystems = []; };
|
with import ./release-lib.nix { supportedSystems = [ builtins.currentSystem ]; };
|
||||||
let
|
let
|
||||||
nativePlatforms = linux;
|
nativePlatforms = linux;
|
||||||
|
|
||||||
|
@ -59,10 +59,9 @@ rec {
|
|||||||
/* Similar to the testOn function, but with an additional
|
/* Similar to the testOn function, but with an additional
|
||||||
'crossSystem' parameter for allPackages, defining the target
|
'crossSystem' parameter for allPackages, defining the target
|
||||||
platform for cross builds. */
|
platform for cross builds. */
|
||||||
testOnCross = crossSystem: systems: f: {system ? builtins.currentSystem}:
|
testOnCross = crossSystem: systems: f: genAttrs
|
||||||
if elem system systems
|
(filter (x: elem x supportedSystems) systems)
|
||||||
then f (allPackages { inherit system crossSystem; })
|
(system: hydraJob' (f (allPackages { inherit system crossSystem; })));
|
||||||
else {};
|
|
||||||
|
|
||||||
|
|
||||||
/* Given a nested set where the leaf nodes are lists of platforms,
|
/* Given a nested set where the leaf nodes are lists of platforms,
|
||||||
|
Loading…
Reference in New Issue
Block a user