Skip to content

Merge pull request #6 from zhiyanov/fixing-pipeline #31

Merge pull request #6 from zhiyanov/fixing-pipeline

Merge pull request #6 from zhiyanov/fixing-pipeline #31

Workflow file for this run

name: Fast build for testing
on:
push:
branches:
- '*'
tags-ignore: # Don't trigger if not release
- '*'
paths-ignore: # Don't trigger on files
- README.md
- setup.py
workflow_dispatch:
jobs:
build_wheels:
name: Build wheel for ${{ matrix.python }}-${{ matrix.buildplat[1] }}
runs-on: ${{ matrix.buildplat[0] }}
strategy:
# Ensure that a wheel builder finishes even if another fails
fail-fast: false
matrix:
buildplat:
- [ubuntu-latest, manylinux_x86_64]
- [macos-latest, macosx_x86_64]
- [macos-latest, macosx_arm64]
- [windows-latest, win_amd64]
- [windows-latest, win32]
python: ["cp312"]
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12' # update once build dependencies are available
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
CIBW_ARCHS: all
CIBW_BEFORE_BUILD_WINDOWS: "pip install delvewheel"
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair -w {dest_dir} {wheel}"
- uses: actions/upload-artifact@v4
with:
name: wheels_artifact-${{ matrix.python }}-${{ matrix.buildplat[1] }}
path: ./wheelhouse/*.whl
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build sdist
run: pipx run build --sdist
- uses: actions/upload-artifact@v4
with:
name: source_artifact
path: dist/*.tar.gz