|
9 | 9 | - main |
10 | 10 |
|
11 | 11 | jobs: |
12 | | - build_wheels: |
13 | | - name: Build ${{ matrix.cpversion }} wheels on ${{ matrix.os }} |
14 | | - runs-on: ${{ matrix.os }} |
15 | | - strategy: |
16 | | - fail-fast: false |
17 | | - matrix: |
18 | | - os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-14] |
19 | | - cpversion: [cp38, cp39, cp310, cp311, cp312, cp313] |
20 | | - # github actions cp38 on macos-14 runners are cross compiling or |
21 | | - # something and confusing the stub generation. Just skip it for now. |
22 | | - # Maybe it'd be friendlier to disable the stub generation for this |
23 | | - # combination. |
24 | | - exclude: |
25 | | - - os: macos-14 |
26 | | - cpversion: cp38 |
| 12 | + build_sdist: |
| 13 | + name: Build SDist |
| 14 | + runs-on: ubuntu-latest |
| 15 | + steps: |
| 16 | + - uses: actions/checkout@v4 |
27 | 17 |
|
| 18 | + - name: Build SDist |
| 19 | + run: pipx run build --sdist |
28 | 20 |
|
29 | | - steps: |
30 | | - - uses: actions/checkout@v4 |
31 | | - |
32 | | - - uses: actions/setup-python@v5 |
33 | | - with: |
34 | | - python-version: '3.12' |
35 | | - |
36 | | - - name: Install cibuildwheel |
37 | | - run: python -m pip install cibuildwheel==2.22.0 |
38 | | - |
39 | | - - name: Build wheels |
40 | | - # why do I need to specify this cpversion here? |
41 | | - env: |
42 | | - CIBW_ARCHS: "auto64" |
43 | | - CIBW_BUILD: "${{ matrix.cpversion }}-*" |
44 | | - # why isn't auto64 working? |
45 | | - CIBW_SKIP: "cp*-manylinux_i686 cp*-musllinux* cp*-win32" |
46 | | - run: python -m cibuildwheel --output-dir wheelhouse |
47 | | - |
48 | | - - uses: actions/upload-artifact@v4 |
49 | | - with: |
50 | | - name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} |
51 | | - path: ./wheelhouse/*.whl |
| 21 | + - name: Check metadata |
| 22 | + run: pipx run twine check dist/* |
| 23 | + |
| 24 | + - uses: actions/upload-artifact@v4 |
| 25 | + with: |
| 26 | + name: artifact-sdist |
| 27 | + path: dist/*.tar.gz |
| 28 | + |
| 29 | + #build_wheels: |
| 30 | + # name: Build ${{ matrix.cpversion }} wheels on ${{ matrix.os }} |
| 31 | + # runs-on: ${{ matrix.os }} |
| 32 | + # strategy: |
| 33 | + # fail-fast: false |
| 34 | + # matrix: |
| 35 | + # os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-14] |
| 36 | + # cpversion: [cp38, cp39, cp310, cp311, cp312, cp313] |
| 37 | + # # github actions cp38 on macos-14 runners are cross compiling or |
| 38 | + # # something and confusing the stub generation. Just skip it for now. |
| 39 | + # # Maybe it'd be friendlier to disable the stub generation for this |
| 40 | + # # combination. |
| 41 | + # exclude: |
| 42 | + # - os: macos-14 |
| 43 | + # cpversion: cp38 |
| 44 | + |
| 45 | + |
| 46 | + # steps: |
| 47 | + # - uses: actions/checkout@v4 |
| 48 | + |
| 49 | + # - uses: actions/setup-python@v5 |
| 50 | + # with: |
| 51 | + # python-version: '3.12' |
| 52 | + |
| 53 | + # - name: Install cibuildwheel |
| 54 | + # run: python -m pip install cibuildwheel==2.22.0 |
| 55 | + |
| 56 | + # - name: Build wheels |
| 57 | + # # why do I need to specify this cpversion here? |
| 58 | + # env: |
| 59 | + # CIBW_ARCHS: "auto64" |
| 60 | + # CIBW_BUILD: "${{ matrix.cpversion }}-*" |
| 61 | + # # why isn't auto64 working? |
| 62 | + # CIBW_SKIP: "cp*-manylinux_i686 cp*-musllinux* cp*-win32" |
| 63 | + # run: python -m cibuildwheel --output-dir wheelhouse |
| 64 | + |
| 65 | + # - uses: actions/upload-artifact@v4 |
| 66 | + # with: |
| 67 | + # name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} |
| 68 | + # path: ./wheelhouse/*.whl |
0 commit comments