Skip to content

Build wheels

Build wheels #25

Workflow file for this run

name: Build wheels
on:
# Only a manual trigger for now
workflow_dispatch:
jobs:
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Build sdist
run: pipx run build --sdist
- uses: actions/upload-artifact@v6
with:
name: sdist
path: ./dist/*.tar.gz
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, macos-15-intel]
steps:
- uses: actions/checkout@v6
- name: Build wheels
uses: pypa/cibuildwheel@v3.3.1
env:
CIBW_ENABLE: "cpython-freethreading"
CIBW_TEST_REQUIRES: ""
CIBW_TEST_COMMAND: python -c "import gnureadline"
- uses: actions/upload-artifact@v6
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
combine:
needs: [build_sdist, build_wheels]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Create paths
run: mkdir -p dist wheelhouse
- uses: actions/download-artifact@v6
with:
pattern: cibw-wheels-*
path: ./wheelhouse/
merge-multiple: true
- uses: actions/download-artifact@v6
with:
name: sdist
path: ./dist/
merge-multiple: true
- uses: actions/upload-artifact@v6
with:
name: combined
path: |
./dist/
./wheelhouse/