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