|
5 | 5 | tags: |
6 | 6 | - 'v*' |
7 | 7 | workflow_dispatch: |
8 | | -build_wheels: |
9 | | - name: Build wheels on ${{ matrix.os }} |
10 | | - runs-on: ${{ matrix.os }} |
11 | | - strategy: |
12 | | - matrix: |
13 | | - os: [ubuntu-latest, windows-latest, macos-latest] |
14 | 8 |
|
15 | | - steps: |
16 | | - - uses: actions/checkout@v4 |
| 9 | +jobs: |
| 10 | + build_wheels: |
| 11 | + name: Build wheels on ${{ matrix.os }} |
| 12 | + runs-on: ${{ matrix.os }} |
| 13 | + strategy: |
| 14 | + matrix: |
| 15 | + os: [ubuntu-latest, windows-latest, macos-latest] |
17 | 16 |
|
18 | | - - name: Set up Python |
19 | | - uses: actions/setup-python@v5 |
20 | | - with: |
21 | | - python-version: "3.10" |
| 17 | + steps: |
| 18 | + - uses: actions/checkout@v4 |
22 | 19 |
|
23 | | - - name: Install cibuildwheel |
24 | | - run: pip install cibuildwheel==2.21.3 |
| 20 | + - name: Set up Python |
| 21 | + uses: actions/setup-python@v5 |
| 22 | + with: |
| 23 | + python-version: "3.10" |
25 | 24 |
|
26 | | - - name: Build wheels |
27 | | - run: cibuildwheel --output-dir wheelhouse |
28 | | - env: |
29 | | - CIBW_VENV_TOOL: venv |
30 | | - CIBW_SKIP: "pp* *-musllinux*" |
31 | | - CIBW_ARCHS_MACOS: "x86_64 arm64" |
32 | | - CIBW_BEFORE_BUILD: "pip install pybind11" |
| 25 | + - name: Install cibuildwheel |
| 26 | + run: pip install cibuildwheel==2.21.3 |
33 | 27 |
|
34 | | - - uses: actions/upload-artifact@v4 |
35 | | - with: |
36 | | - name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} |
37 | | - path: ./wheelhouse/*.whl |
| 28 | + - name: Build wheels |
| 29 | + run: cibuildwheel --output-dir wheelhouse |
| 30 | + env: |
| 31 | + CIBW_VENV_TOOL: venv |
| 32 | + CIBW_SKIP: "pp* *-musllinux*" |
| 33 | + CIBW_ARCHS_MACOS: "x86_64 arm64" |
| 34 | + CIBW_BEFORE_BUILD: "pip install pybind11" |
| 35 | + |
| 36 | + - uses: actions/upload-artifact@v4 |
| 37 | + with: |
| 38 | + name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} |
| 39 | + path: ./wheelhouse/*.whl |
38 | 40 |
|
39 | 41 | build_sdist: |
40 | 42 | name: Build source distribution |
|
0 commit comments