Skip to content

Commit 0a301fc

Browse files
ci: bound cores per Nix build
agent-identity: dev3.direct.omp.uyt54www agent-persona: generalist agent-supervisor: unavailable agent-tool: OMP agent-tool-version: 18.1.7 agent-runtime: OMP 18.1.7 tooling-profile: dotfiles@39a19af
1 parent d4af275 commit 0a301fc

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/nix.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,17 @@ concurrency:
1515
jobs:
1616
check-x86_64-linux:
1717
runs-on: ubuntu-latest
18-
# A healthy full `nix flake check` baseline is ~35m; 90m provides
19-
# headroom while still failing boundedly.
18+
# `nix flake check` builds many independent Rust derivations. If each Cargo
19+
# build sees every runner core, the concurrent derivations oversubscribe the
20+
# hosted runner and make the critical path substantially slower.
2021
timeout-minutes: 90
2122
steps:
2223
- uses: actions/checkout@v4
2324
- uses: DeterminateSystems/determinate-nix-action@v3
2425
# `nix flake check` rather than `nix build`: it builds the package *and*
2526
# evaluates every `checks.*`, so fmt, clippy, the hermetic test suite, and
2627
# the `--help` smoke test all gate the PR from one entrypoint.
27-
- run: nix flake check --print-build-logs
28+
- run: nix flake check --cores 1 --print-build-logs
2829

2930
# st2 drives real processes — process groups, signals, pipes, reaping — and those paths
3031
# are OS behaviour, not portable Rust: #356 and #255 were aarch64-darwin failures no Linux

0 commit comments

Comments
 (0)