|
16 | 16 |
|
17 | 17 | jobs:
|
18 | 18 | build_wheels:
|
19 |
| - name: ${{ matrix.type }} ${{ matrix.arch }} on ${{ matrix.os }} |
| 19 | + name: Build wheels on ${{ matrix.os }} for ${{ matrix.arch }} - ${{ matrix.p_ver }} |
20 | 20 | runs-on: ${{ matrix.os }}
|
| 21 | + env: |
| 22 | + CIBW_BUILD: ${{ matrix.cibw_build }} |
| 23 | + CIBW_ARCHS_LINUX: ${{ matrix.arch }} |
| 24 | + CIBW_ARCHS_MACOS: ${{ matrix.arch }} |
21 | 25 | strategy:
|
22 |
| - fail-fast: false |
23 | 26 | matrix:
|
24 |
| - os: [macos-latest, ubuntu-latest] |
| 27 | + os: [ubuntu-latest, windows-latest, macos-latest] |
25 | 28 | arch: [auto64]
|
| 29 | + cibw_build: ["cp3{9,10,11}-*"] |
| 30 | + p_ver: ["3.9-3.11"] |
| 31 | + exclude: |
| 32 | + - arch: arm64 |
| 33 | + os: macos-latest |
| 34 | + include: |
| 35 | + - arch: aarch64 |
| 36 | + os: ubuntu-latest |
| 37 | + cibw_build: "cp37*" |
| 38 | + p_ver: "3.7" |
| 39 | + - arch: aarch64 |
| 40 | + os: ubuntu-latest |
| 41 | + cibw_build: "cp38*" |
| 42 | + p_ver: "3.8" |
| 43 | + - arch: aarch64 |
| 44 | + os: ubuntu-latest |
| 45 | + cibw_build: "cp39*" |
| 46 | + p_ver: "3.9" |
| 47 | + - arch: aarch64 |
| 48 | + os: ubuntu-latest |
| 49 | + cibw_build: "cp310*" |
| 50 | + p_ver: "3.10" |
| 51 | + - arch: aarch64 |
| 52 | + os: ubuntu-latest |
| 53 | + cibw_build: "cp311*" |
| 54 | + p_ver: "3.11" |
26 | 55 |
|
27 | 56 | steps:
|
28 | 57 | - uses: actions/checkout@v3
|
29 | 58 | with:
|
30 | 59 | fetch-depth: 0
|
31 | 60 | submodules: true
|
32 | 61 |
|
33 |
| - # Used to host cibuildwheel |
34 |
| - - uses: actions/setup-python@v3 |
35 |
| - # Installs poetry |
36 |
| - - uses: Gr1N/setup-poetry@v8 |
| 62 | + - name: Set up QEMU |
| 63 | + if: matrix.os == 'ubuntu-latest' && matrix.arch == 'aarch64' |
| 64 | + uses: docker/setup-qemu-action@v1 |
37 | 65 | with:
|
38 |
| - poetry-version: "1.4.0" |
39 |
| - - name: Install cibuildwheel |
40 |
| - run: python -m pip install cibuildwheel==2.12.1 |
| 66 | + platforms: arm64 |
41 | 67 |
|
42 | 68 | - name: Build wheels
|
43 |
| - run: python -m cibuildwheel --output-dir wheelhouse |
| 69 | + uses: pypa/cibuildwheel@v2.12.1 |
44 | 70 | env:
|
45 |
| - CIBW_ARCHS_MACOS: "x86_64 universal2 arm64" |
46 |
| - CIBW_TEST_SKIP: '*_arm64 *_universal2:arm64' |
| 71 | + CIBW_ARCHS_MACOS: "x86_64" |
47 | 72 |
|
48 | 73 | - uses: actions/upload-artifact@v3
|
49 | 74 | with:
|
|
0 commit comments