Skip to content

Commit 20f7bba

Browse files
committed
Revert MacOS runner to 13
1 parent 63a1b1e commit 20f7bba

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/build-wheels.yml

Lines changed: 8 additions & 16 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]
2323
python_impl: [Python]
2424
include:
2525
- python: cp312
@@ -29,8 +29,7 @@ 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: "arm64"
33-
# TOdo: reenable x86_64
32+
CIBW_ARCHS_MACOS: "x86_64 arm64"
3433
# No support for pypy, musl, Win32 for 3.10+
3534
# Skip musl for 3.8 and 3.9 since no upstream wheels
3635
CIBW_SKIP: "pp* *-win32 cp38-musllinux* cp39-musllinux* *musllinux_aarch64*"
@@ -39,6 +38,7 @@ jobs:
3938
# Avoid testing on emulated architectures and Pyodide
4039
CIBW_TEST_SKIP: "*-*linux_{aarch64,ppc64le,s390x} *pyodide*"
4140
CIBW_REPAIR_WHEEL_COMMAND_LINUX: 'auditwheel repair --strip -w {dest_dir} {wheel}'
41+
CIBW_BUILD_VERBOSITY: 1
4242
MULTIBUILD_WHEELS_STAGING_ACCESS: ${{ secrets.MULTIBUILD_WHEELS_STAGING_ACCESS }}
4343
SCIENTIFIC_PYTHON_NIGHTLY_WHEELS: ${{ secrets.SCIENTIFIC_PYTHON_NIGHTLY_WHEELS }}
4444
MKL_NUM_THREADS: 1
@@ -51,27 +51,20 @@ jobs:
5151
submodules: recursive
5252
fetch-depth: 0
5353

54-
# Used to host cibuildwheel runner
55-
- uses: actions/setup-python@v5
56-
with:
57-
python-version: '3.x'
58-
5954
- name: Set up QEMU
6055
if: runner.os == 'Linux'
6156
uses: docker/setup-qemu-action@v3
6257
with:
6358
platforms: all
6459

65-
- name: Install cibuildwheel
66-
run: python -m pip install cibuildwheel~=2.20.0
67-
6860
- name: Build wheels
69-
run: |
70-
python -m cibuildwheel --output-dir wheelhouse statsmodels
61+
uses: pypa/[email protected]
62+
if: matrix.python_impl != 'Pyodide'
63+
with:
64+
output-dir: wheelhouse
65+
package-dir: statsmodels
7166
env:
7267
CIBW_BEFORE_BUILD: 'git submodule foreach git checkout ${{ env.BUILD_COMMIT }}'
73-
CIBW_BUILD_VERBOSITY: 1
74-
CIBW_ENVIRONMENT_MACOS: CGLAGS="-std=c99"
7568

7669
- name: Build Pyodide wheel
7770
if: matrix.python_impl == 'Pyodide'
@@ -82,7 +75,6 @@ jobs:
8275
env:
8376
CIBW_BEFORE_BUILD: 'git submodule foreach git checkout ${{ env.BUILD_COMMIT }}'
8477
CIBW_PLATFORM: pyodide
85-
CIBW_BUILD_VERBOSITY: 1
8678

8779
- name: Setup Upload Variables
8880
if: ${{ always() }}

0 commit comments

Comments
 (0)