Skip to content

Commit 65cc708

Browse files
committed
BLD: Split out MacOS Builds
1 parent d33ce95 commit 65cc708

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/build-wheels.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
python: [cp39, cp310, cp311, cp312]
22-
os: [ubuntu-latest, windows-latest, macos-13]
22+
os: [ubuntu-latest, windows-latest, macos-13, macos-latest]
2323
python_impl: [Python]
2424
include:
2525
- python: cp312
@@ -29,7 +29,6 @@ jobs:
2929
BUILD_COMMIT: "main" # or a specific version, e.g., v0.13.1
3030
CIBW_BUILD: ${{ matrix.python }}-*
3131
CIBW_ARCHS_LINUX: "x86_64 aarch64"
32-
CIBW_ARCHS_MACOS: "x86_64 arm64"
3332
# No support for pypy, musl, Win32 for 3.10+
3433
# Skip musl for 3.8 and 3.9 since no upstream wheels
3534
CIBW_SKIP: "pp* *-win32 cp38-musllinux* cp39-musllinux* *musllinux_aarch64*"
@@ -57,14 +56,25 @@ jobs:
5756
with:
5857
platforms: all
5958

60-
- name: Build wheels
59+
- name: Build wheels (Default)
6160
uses: pypa/[email protected]
62-
if: matrix.python_impl != 'Pyodide'
61+
if: (matrix.python_impl != 'Pyodide') && (matrix.os != 'macos-latext')
6362
with:
6463
output-dir: wheelhouse
6564
package-dir: statsmodels
6665
env:
6766
CIBW_BEFORE_BUILD: 'git submodule foreach git checkout ${{ env.BUILD_COMMIT }}'
67+
CIBW_ARCHS_OSX: "x86_64"
68+
69+
- name: Build wheels (MacOS arm64)
70+
if: matrix.os == 'macos-latest'
71+
uses: pypa/[email protected]
72+
with:
73+
output-dir: wheelhouse
74+
package-dir: statsmodels
75+
env:
76+
CIBW_BEFORE_BUILD: 'git submodule foreach git checkout ${{ env.BUILD_COMMIT }}'
77+
CIBW_ARCHS_OSX: "arm64"
6878

6979
- name: Build Pyodide wheel
7080
if: matrix.python_impl == 'Pyodide'

0 commit comments

Comments
 (0)