|  | 
| 19 | 19 |       fail-fast: false | 
| 20 | 20 |       matrix: | 
| 21 | 21 |         python: [cp39, cp310, cp311, cp312] | 
| 22 |  | -        os: [ubuntu-latest, windows-latest, macos-13] | 
|  | 22 | +        os: [ubuntu-latest, windows-latest, macos-13, macos-latest] | 
| 23 | 23 |         python_impl: [Python] | 
| 24 | 24 |         include: | 
| 25 | 25 |           - python: cp312 | 
|  | 
| 29 | 29 |       BUILD_COMMIT: "main"  # or a specific version, e.g., v0.13.1 | 
| 30 | 30 |       CIBW_BUILD: ${{ matrix.python }}-* | 
| 31 | 31 |       CIBW_ARCHS_LINUX: "x86_64 aarch64" | 
| 32 |  | -      CIBW_ARCHS_MACOS: "x86_64 arm64" | 
| 33 | 32 |       # No support for pypy, musl, Win32 for 3.10+ | 
| 34 | 33 |       # Skip musl for 3.8 and 3.9 since no upstream wheels | 
| 35 | 34 |       CIBW_SKIP: "pp* *-win32 cp38-musllinux* cp39-musllinux* *musllinux_aarch64*" | 
| @@ -57,14 +56,25 @@ jobs: | 
| 57 | 56 |         with: | 
| 58 | 57 |           platforms: all | 
| 59 | 58 | 
 | 
| 60 |  | -      - name: Build wheels | 
|  | 59 | +      - name: Build wheels (Default) | 
| 61 | 60 |  | 
| 62 |  | -        if: matrix.python_impl != 'Pyodide' | 
|  | 61 | +        if: (matrix.python_impl != 'Pyodide') && (matrix.os != 'macos-latext') | 
| 63 | 62 |         with: | 
| 64 | 63 |           output-dir: wheelhouse | 
| 65 | 64 |           package-dir: statsmodels | 
| 66 | 65 |         env: | 
| 67 | 66 |           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 | + | 
|  | 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"           | 
| 68 | 78 | 
 | 
| 69 | 79 |       - name: Build Pyodide wheel | 
| 70 | 80 |         if: matrix.python_impl == 'Pyodide' | 
|  | 
0 commit comments