Skip to content

Commit

Permalink
Merge pull request #17 from Mic92/joerg-ci
Browse files Browse the repository at this point in the history
set experimental-features for nix consistently
  • Loading branch information
Mic92 authored Sep 23, 2023
2 parents e945942 + 99886e7 commit b34d06a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ Actions.
To optimize this, use the `--skip-cached` flag with `nix-fast-build`. This
ensures that only those packages missing from the binary caches will be built.

## Specifying Build Systems

By default, `nix-fast-build` evaluates all architectures but only initiates
builds for the current system. You can modify this behavior with the `--systems`
flag. For instance, using `--systems "aarch64-linux x86_64-linux"` will prompt
builds for both `aarch64-linux` and `x86_64-linux` architectures. Ensure that
your system is capable of building for the specified architectures, either
locally or through the remote builder protocol.

## Reference

```console
Expand Down
4 changes: 2 additions & 2 deletions nix_fast_build/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ async def parse_args(args: list[str]) -> Options:
)
parser.add_argument(
"--systems",
help="Comma-separated list of systems to build for (default: current system)",
help="Space-separated list of systems to build for (default: current system)",
default=None,
)
parser.add_argument(
Expand Down Expand Up @@ -234,7 +234,7 @@ async def parse_args(args: list[str]) -> Options:
if a.systems is None:
systems = set([nix_config.get("system", "")])
else:
systems = set(a.systems.split(","))
systems = set(a.systems.split(" "))

return Options(
flake_url=flake_url,
Expand Down

0 comments on commit b34d06a

Please sign in to comment.