Skip to content

Commit f34c531

Browse files
authored
Merge pull request #171 from libigl/alecjacobson/use-3-cores-on-mac
logic to use 3 cores on mac, 2 otherwise in github action
2 parents 52254d4 + 168b143 commit f34c531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
CIBW_TEST_COMMAND: "python {project}/tests/test_basic.py {project}/data/"
5656
CIBW_BUILD: "${{ matrix.cpversion }}-${{ matrix.os.cibw-arch }}"
5757
CIBW_TEST_SKIP: "*-macosx_arm64"
58-
CIBW_ENVIRONMENT: "MAX_JOBS=2"
58+
CIBW_ENVIRONMENT: "MAX_JOBS=${{ matrix.os.runs-on == 'macos-latest' && 3 || 2 }}"
5959
# Why universal2 here? It's not included above in CIBW_BUILD
6060
CIBW_ARCHS_MACOS: "x86_64 arm64 universal2"
6161
CIBW_ENVIRONMENT_MACOS: "CMAKE_OSX_ARCHITECTURES=\"${{ matrix.os.cibw-arch == 'macosx_x86_64' && 'x86_64' || matrix.os.cibw-arch == 'macosx_arm64' && 'arm64' || matrix.os.cibw-arch == 'macosx_universal2' && 'arm64;x86_64' || '' }}\""

0 commit comments

Comments
 (0)