From 332ce583bb48fc62e29b3bca43d74413c7d99054 Mon Sep 17 00:00:00 2001 From: Eric Canton Date: Thu, 1 Oct 2026 10:52:35 -0500 Subject: [PATCH] macOS wheels: build native deps with Ninja to bound parallelism Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/workflows/dry-run-testpypi.yml | 6 ++++++ .github/workflows/release-wheel.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/dry-run-testpypi.yml b/.github/workflows/dry-run-testpypi.yml index 6b9d394..2dba3b3 100644 --- a/.github/workflows/dry-run-testpypi.yml +++ b/.github/workflows/dry-run-testpypi.yml @@ -125,6 +125,12 @@ jobs: fail-fast: false matrix: ${{ fromJSON(needs.resolve.outputs.matrix) }} + # setup.py runs `cmake --build --parallel` with no job count, which under + # Makefiles is an unbounded `make -j` and exhausts the runner's process + # limit. Ninja (a build requirement) defaults to roughly the core count. + env: + CMAKE_GENERATOR: Ninja + steps: - name: Check out source uses: actions/checkout@v7 diff --git a/.github/workflows/release-wheel.yml b/.github/workflows/release-wheel.yml index 4f13ef8..9d4e74a 100644 --- a/.github/workflows/release-wheel.yml +++ b/.github/workflows/release-wheel.yml @@ -179,6 +179,12 @@ jobs: fail-fast: false matrix: ${{ fromJSON(needs.resolve.outputs.matrix) }} + # setup.py runs `cmake --build --parallel` with no job count, which under + # Makefiles is an unbounded `make -j` and exhausts the runner's process + # limit. Ninja (a build requirement) defaults to roughly the core count. + env: + CMAKE_GENERATOR: Ninja + steps: - name: Check out release source uses: actions/checkout@v7