Debian Codegraph @

.github/workflows/wheel.yml

raw
1 name: Build wheels
2
3 on:
4 workflow_dispatch:
5
6 jobs:
7 build:
8 name: Build wheels on ${{ matrix.os }}
9 runs-on: ${{ matrix.os }}
10 strategy:
11 matrix:
12 os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest, windows-11-arm]
13 steps:
14 - uses: actions/checkout@v7
15 - uses: pypa/[email protected]
16 env:
17 # MACOSX_DEPLOYMENT_TARGET: "11.0"
18 # CIBW_ENVIRONMENT: "PIP_PRE=1"
19 CIBW_BUILD_VERBOSITY: 2
20 # build ABI3 wheels with Python 3.12, and free-threaded wheels for Python >=3.14t
21 CIBW_BUILD: "cp312-* cp314t-* cp315t-*"
22 CIBW_SKIP: "*musllinux* *i686 *ppc64le *s390x"
23 CIBW_ARCHS_LINUX: auto
24 CIBW_ARCHS_MACOS: x86_64 arm64
25 CIBW_ARCHS_WINDOWS: native
26 CIBW_TEST_REQUIRES: numpy
27 CIBW_TEST_COMMAND: python -c "import ptufile;from ptufile import _ptufile;print(ptufile.__version__)"
28 - uses: actions/setup-python@v7
29 with:
30 python-version: 3.14
31 - name: Install packages
32 run: |
33 python -m pip install -U --find-links=wheelhouse ptufile abi3audit
34 - name: Audit ABI3 wheels
35 run: |
36 abi3audit --strict --report wheelhouse/*abi3*.whl
37 - name: Test ABI3 wheels
38 run: |
39 cd ..
40 python -c "import ptufile;from ptufile import _ptufile;print(ptufile.__version__)"
41 - uses: actions/upload-artifact@v7
42 with:
43 path: ./wheelhouse/*.whl
44 name: wheels-${{ matrix.os }}
45
46 build_pyodide:
47 name: Build Pyodide wheel
48 runs-on: ubuntu-latest
49 steps:
50 - uses: actions/checkout@v7
51 - uses: actions/setup-python@v7
52 with:
53 python-version: '3.12'
54 - name: Install cibuildwheel
55 run: python -m pip install cibuildwheel
56 - name: Build wheel
57 run: python -m cibuildwheel --platform pyodide
58 - uses: actions/upload-artifact@v7
59 with:
60 path: ./wheelhouse/*.whl
61 name: wheels-pyodide