Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: wheels

on:
workflow_dispatch:
inputs:
ref:
description: Git ref to build (tag or branch)
required: true
default: "0.5.2"
push:
tags:
- "*"

permissions:
contents: read

jobs:
build_wheels:
name: ${{ matrix.os }} / ${{ matrix.archs }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
archs: x86_64
- os: macos-15-intel
archs: x86_64
- os: macos-15
archs: arm64
- os: windows-latest
archs: AMD64
steps:
- uses: actions/checkout@v5
with:
ref: ${{ inputs.ref || github.ref }}

- name: Build wheels
uses: pypa/cibuildwheel@v4.3.1
env:
CIBW_ARCHS: ${{ matrix.archs }}
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-* cp314-*"
CIBW_SKIP: "*-musllinux_*"
CIBW_TEST_REQUIRES: "pytest"
CIBW_TEST_COMMAND: "python -m pytest -q --import-mode=importlib {project}/tests"

- uses: actions/upload-artifact@v7
with:
name: wheels-${{ matrix.os }}-${{ matrix.archs }}
path: wheelhouse/*.whl
if-no-files-found: error
Loading