Skip to content

Build Wheels

Build Wheels #27

Workflow file for this run

name: Build Wheels
on:
workflow_dispatch:
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
permissions:
contents: write
strategy:
matrix:
os: [ "ubuntu-latest", "windows-latest", "macos-14" ]
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install build dependencies
run: |
python -m pip install pip wheel
shell: bash
- name: Build wheel
run: |
mkdir -p dist
pip wheel . --no-deps --wheel-dir dist/
shell: bash
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.os }}-py${{ matrix.python-version }}
path: dist/*
publish:
needs: build_wheels
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
pattern: dist-*
path: dist
merge-multiple: true
- name: Upload wheels to GitHub
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist/*
retention-days: 90