Python: Use maturin-action for building slint compiler wheels

pypa/cibuildwheel seems to have issues with the linux builds and we use maturin-action also for our main python packages.
This commit is contained in:
Simon Hausmann 2025-10-30 13:40:33 +08:00 committed by Simon Hausmann
parent 0e13cd4cb3
commit 9ab7184df1

View file

@ -31,17 +31,14 @@ jobs:
- uses: actions/checkout@v5
- uses: ./.github/actions/setup-rust
- name: Build wheels
uses: pypa/cibuildwheel@v3.2.1
uses: PyO3/maturin-action@v1
with:
package-dir: tools/compiler
output-dir: wheelhouse
env:
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.10"
CIBW_BUILD_FRONTEND: "build"
working-directory: tools/compiler
args: --release --out wheelhouse --find-interpreter
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}
path: wheelhouse/*.whl
path: tools/compiler/wheelhouse/*.whl
build-sdist:
name: Build source distribution