Skip to content

Set up CI

Set up CI #4

Workflow file for this run

name: build-wheels
on:
push:
branches: ['main', 'master']
tags: ['v*']
pull_request:
workflow_dispatch:
jobs:
wheels:
strategy:
fail-fast: false
matrix:
include:
- label: linux-x86_64
os: ubuntu-latest
cibw_archs: "x86_64"
- label: linux-aarch64
os: ubuntu-22.04-arm
cibw_archs: "aarch64"
- label: windows
os: windows-latest
cibw_archs: "AMD64"
- label: macos
os: macos-14
cibw_archs: "arm64"
name: build-${{ matrix.label }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: pypa/cibuildwheel@v2.19.0
env:
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-*"
CIBW_ARCHS: ${{ matrix.cibw_archs }}
CIBW_TEST_REQUIRES: "numpy pytest soundfile"
CIBW_TEST_COMMAND: "pytest"
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.label }}
path: wheelhouse/*.whl