|
8 | 8 | runs-on: ${{ matrix.os }}
|
9 | 9 | strategy:
|
10 | 10 | matrix:
|
11 |
| - os: [ubuntu-22.04, macos-12, macos-14] |
| 11 | + os: [ubuntu-22.04, macos-12, macos-14, windows-2022] |
12 | 12 | steps:
|
13 | 13 | - uses: actions/checkout@v4
|
14 | 14 | - if: runner.os == 'macOS'
|
15 | 15 | run: brew install pipx
|
| 16 | + - uses: msys2/setup-msys2@v2 |
| 17 | + name: Setup msys2 |
| 18 | + with: |
| 19 | + install: >- |
| 20 | + mingw-w64-ucrt-x86_64-gcc |
| 21 | + autotools |
| 22 | + msystem: ucrt64 |
| 23 | + path-type: inherit |
| 24 | + if: ${{ matrix.os == 'windows-2022' }} |
16 | 25 | - name: Build wheels
|
17 | 26 |
|
18 | 27 | env:
|
19 | 28 | CIBW_PRERELEASE_PYTHONS: True
|
20 |
| - CIBW_SKIP: pp* |
21 |
| - CIBW_BEFORE_BUILD: bash scripts/cibw_before_all.sh |
| 29 | + CIBW_SKIP: pp* *-win32 |
| 30 | + CIBW_BEFORE_ALL: bash scripts/cibw_before_all.sh |
| 31 | + CIBW_BEFORE_ALL_WINDOWS: > |
| 32 | + msys2 -c scripts/cibw_before_all.sh && |
| 33 | + scripts\cibw_before_all_windows.bat |
| 34 | + CIBW_BEFORE_BUILD_WINDOWS: pip install delvewheel |
22 | 35 | CIBW_TEST_EXTRAS: tests
|
23 | 36 | CIBW_TEST_SKIP: cp38-macosx_arm64
|
24 | 37 | CIBW_TEST_COMMAND: >
|
25 | 38 | pytest {package}/test/ &&
|
26 | 39 | python {package}/test_cython/runtests.py
|
27 | 40 | CIBW_REPAIR_WHEEL_COMMAND: >
|
28 | 41 | bash scripts/cibw_repair_wheel_command.sh {dest_dir} {wheel}
|
| 42 | + CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: > |
| 43 | + scripts\cibw_repair_wheel_command_windows.bat {dest_dir} {wheel} |
29 | 44 | - uses: actions/upload-artifact@v4
|
30 | 45 | with:
|
31 | 46 | name: wheels-${{ matrix.os }}
|
|
0 commit comments