fix: update pyproject to install rust for py13 #123
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Build for PyPi | |
on: | |
pull_request: | |
workflow_call: | |
inputs: | |
publish: | |
type: boolean | |
default: false | |
description: "Build for PyPi" | |
jobs: | |
build_src_for_pypi: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
submodules: true | |
- name: Install dependencies | |
run: | | |
pip install build | |
- name: Build src dist | |
run: | | |
python -m build --sdist | |
env: | |
PIP_CONSTRAINT: requirements.txt | |
- name: Store the distribution packages | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cibw-sdist | |
path: ./**/*.tar.gz | |
build_dist_for_pypi: | |
needs: | |
- build_src_for_pypi | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- macos-13 | |
- macos-latest | |
- ubuntu-24.04-arm | |
- ubuntu-latest | |
- windows-latest | |
steps: | |
- name: Download the sdist | |
uses: actions/download-artifact@v4 | |
with: | |
name: cibw-sdist | |
- name: Get sdist filename | |
id: get-sdist | |
run: | | |
echo "sdist_filename=$(ls dist/)" >> "${GITHUB_OUTPUT}" | |
shell: bash | |
- name: Build wheels | |
uses: pypa/[email protected] | |
with: | |
package-dir: dist/${{ steps.get-sdist.outputs.sdist_filename }} | |
- name: Store the distribution packages | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cibw-wheels-${{ matrix.os }} | |
path: ./wheelhouse/*.whl |