NixCI automatically discovers build dependencies between flake outputs by default, so that jobs run in the right order.
NixCI automatically discovers build dependencies between flake outputs by default, so that jobs run in the right order.
By default, builds can start while dependencies are still being discovered.
Set
synchronous
to
false
to start builds while dependencies are still being discovered.
This is useful when you value speed over cost savings.
For example, to enable synchronous dependency discovery, add the following to your
nix-ci.nix
{
dependency-discovery = {
enable = true;
synchronous = true;
};
}You can also specify build dependencies manually. Manually specified dependency edges are merged with automatically discovered dependency edges.
dependency-discovery: # optional
# Dependency discovery configuration.
# default: true
# any of
[ # Whether to enable dependency discovery.
# With true, synchronous defaults to False.
<boolean>
, # DependencyDiscovery
enable: # optional
# default: true
# Enable automatic dependency discovery.
<boolean>
synchronous: # optional
# default: false
# Wait for dependency discovery to finish before starting builds.
<boolean>
]