Skip to content

Allow wheel workflow testing on all branches #1

Allow wheel workflow testing on all branches

Allow wheel workflow testing on all branches #1

Workflow file for this run

name: Build wheels
on:
workflow_dispatch:
pull_request:
push:
branches:
- "**"
tags:
- "v*"
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest # Linux x86_64
- os: ubuntu-24.04-arm # Linux ARM64 / aarch64
- os: macos-13 # Intel macOS
- os: macos-14 # Apple Silicon macOS
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build wheels
uses: pypa/cibuildwheel@v3.4.1
env:
CIBW_BUILD: "cp314-*"
CIBW_BUILD_FRONTEND: "build[uv]"
- name: Upload wheel artifacts
uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}
path: wheelhouse/*.whl
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install Python
run: uv python install 3.14
- name: Build sdist
run: uv build --sdist
- name: Upload sdist artifact
uses: actions/upload-artifact@v4
with:
name: sdist
path: dist/*.tar.gz
check_artifacts:
name: Check built distributions
needs:
- build_wheels
- build_sdist
runs-on: ubuntu-latest
steps:
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: dist
merge-multiple: true
- name: Show distributions
run: ls -lh dist
- name: Check metadata
run: uvx twine check --strict dist/*