From 6c176b92c04dc6b5be6564a8c156b4446ac29ead Mon Sep 17 00:00:00 2001 From: Max Shinn Date: Thu, 24 Oct 2024 17:14:35 +0100 Subject: [PATCH] Support for building wheels --- .github/workflows/buildwheels.yml | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/buildwheels.yml diff --git a/.github/workflows/buildwheels.yml b/.github/workflows/buildwheels.yml new file mode 100644 index 0000000..0aecd63 --- /dev/null +++ b/.github/workflows/buildwheels.yml @@ -0,0 +1,34 @@ +name: Build wheels + +on: workflow_dispatch + +jobs: + build_wheels: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [windows-latest, macos-latest, ubuntu-20.04] + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v3 + with: + python-version: "3.10" + + - name: Setup pip + run: | + python -m pip install --upgrade pip + python -m pip install setuptools + python -m pip install cibuildwheel==2.10.0 + + - name: Build wheel + run: python -m cibuildwheel --output-dir dist/ + env: + CIBW_BUILD: cp36-* cp37-* cp38-* cp39-* cp310-* cp311-* cp312-* cp313-* + CIBW_ARCHS_MACOS: "x86_64 arm64" + CIBW_ARCHS_LINUX: "x86_64 i686" + CIBW_SKIP: "*-musllinux_*" + + - uses: actions/upload-artifact@v3 + with: + path: ./dist/*.whl \ No newline at end of file