|
5 | 5 | branches: ["main"] |
6 | 6 |
|
7 | 7 | jobs: |
8 | | - wheel_build_full: |
9 | | - runs-on: ${{ matrix.os }} |
| 8 | + macos_wheel: |
| 9 | + runs-on: macos-latest |
10 | 10 | strategy: |
11 | 11 | matrix: |
12 | | - os: [macos-latest, ubuntu-latest, windows-latest] |
| 12 | + arch: [x86_64, arm64] |
| 13 | + cw_build: ["cp36-*", "cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*"] |
13 | 14 |
|
14 | 15 | steps: |
15 | 16 | - uses: actions/checkout@v3 |
16 | 17 | with: |
17 | 18 | submodules: recursive |
18 | | - - name: build wheels |
19 | | - uses: pypa/cibuildwheel@v2.12.1 |
| 19 | + - name: build wheels |
| 20 | + uses: pypa/cibuildwheel@v2.13.1 |
20 | 21 | env: |
| 22 | + CIBW_ARCHS: ${{ matrix.arch }} |
| 23 | + CIBW_BUILD: ${{ matrix.cw_build }} |
| 24 | + CIBW_TEST_SKIP: "*-macosx_arm64" |
21 | 25 | SPLINEPY_GITHUB_ACTIONS_BUILD: True |
22 | 26 |
|
23 | 27 | - uses: actions/upload-artifact@v3 |
24 | 28 | with: |
25 | 29 | path: ./wheelhouse/*.whl |
| 30 | + retention-days: 2 |
| 31 | + |
| 32 | + linux_wheel: |
| 33 | + runs-on: ubuntu-latest |
| 34 | + strategy: |
| 35 | + matrix: |
| 36 | + arch: [x86_64] |
| 37 | + cw_build: ["cp36*many*", "cp37*many*", "cp38*many*", "cp39*many*", "cp310*many*", "cp311*many*"] |
| 38 | + |
| 39 | + steps: |
| 40 | + - uses: actions/checkout@v3 |
| 41 | + with: |
| 42 | + submodules: recursive |
| 43 | + - name: build wheels |
| 44 | + |
| 45 | + env: |
| 46 | + CIBW_ARCHS: ${{ matrix.arch }} |
| 47 | + CIBW_BUILD: ${{ matrix.cw_build }} |
| 48 | + SPLINEPY_GITHUB_ACTIONS_BUILD: True |
| 49 | + |
| 50 | + - uses: actions/upload-artifact@v3 |
| 51 | + with: |
| 52 | + path: ./wheelhouse/*.whl |
| 53 | + retention-days: 2 |
| 54 | + |
| 55 | + windows_wheel: |
| 56 | + runs-on: windows-latest |
| 57 | + strategy: |
| 58 | + matrix: |
| 59 | + arch: [x86, AMD64, ARM64] |
| 60 | + cw_build: ["cp36-*", "cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*"] |
| 61 | + |
| 62 | + steps: |
| 63 | + - uses: actions/checkout@v3 |
| 64 | + with: |
| 65 | + submodules: recursive |
| 66 | + - name: build wheels |
| 67 | + |
| 68 | + env: |
| 69 | + CIBW_ARCHS: ${{ matrix.arch }} |
| 70 | + CIBW_BUILD: ${{ matrix.cw_build }} |
| 71 | + CIBW_TEST_SKIP: "*-win_arm64" |
| 72 | + SPLINEPY_GITHUB_ACTIONS_BUILD: True |
| 73 | + |
| 74 | + - uses: actions/upload-artifact@v3 |
| 75 | + with: |
| 76 | + path: ./wheelhouse/*.whl |
| 77 | + retention-days: 2 |
26 | 78 |
|
27 | 79 | source_dist: |
28 | 80 | runs-on: ubuntu-latest |
|
37 | 89 | - uses: actions/upload-artifact@v3 |
38 | 90 | with: |
39 | 91 | path: ./dist/* |
| 92 | + retention-days: 2 |
| 93 | + |
40 | 94 |
|
41 | 95 | upload_test_pypi: |
42 | 96 | needs: [wheel_build_full, source_dist] |
|
0 commit comments