Skip to content

Commit 9e5299b

Browse files
authored
Merge pull request #166 from bashtage/main
BLD: Add c99
2 parents e783a73 + 3c4afc5 commit 9e5299b

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/build-wheels.yml

Lines changed: 15 additions & 6 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-latest]
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*"
@@ -38,6 +37,7 @@ jobs:
3837
# Avoid testing on emulated architectures and Pyodide
3938
CIBW_TEST_SKIP: "*-*linux_{aarch64,ppc64le,s390x} *pyodide*"
4039
CIBW_REPAIR_WHEEL_COMMAND_LINUX: 'auditwheel repair --strip -w {dest_dir} {wheel}'
40+
CIBW_BUILD_VERBOSITY: 1
4141
MULTIBUILD_WHEELS_STAGING_ACCESS: ${{ secrets.MULTIBUILD_WHEELS_STAGING_ACCESS }}
4242
SCIENTIFIC_PYTHON_NIGHTLY_WHEELS: ${{ secrets.SCIENTIFIC_PYTHON_NIGHTLY_WHEELS }}
4343
MKL_NUM_THREADS: 1
@@ -56,15 +56,25 @@ jobs:
5656
with:
5757
platforms: all
5858

59-
- name: Build wheels
59+
- name: Build wheels (Default)
6060
uses: pypa/[email protected]
61-
if: matrix.python_impl != 'Pyodide'
61+
if: (matrix.python_impl != 'Pyodide') && (matrix.os != 'macos-latest')
6262
with:
6363
output-dir: wheelhouse
6464
package-dir: statsmodels
6565
env:
6666
CIBW_BEFORE_BUILD: 'git submodule foreach git checkout ${{ env.BUILD_COMMIT }}'
67-
CIBW_BUILD_VERBOSITY: 2
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'
@@ -75,7 +85,6 @@ jobs:
7585
env:
7686
CIBW_BEFORE_BUILD: 'git submodule foreach git checkout ${{ env.BUILD_COMMIT }}'
7787
CIBW_PLATFORM: pyodide
78-
CIBW_BUILD_VERBOSITY: 2
7988

8089
- name: Setup Upload Variables
8190
if: ${{ always() }}

0 commit comments

Comments
 (0)