Skip to content

Commit

Permalink
build wheels job
Browse files Browse the repository at this point in the history
  • Loading branch information
JIy3AHKO committed May 26, 2024
1 parent e62087f commit f920805
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build wheels

on:
push:
tags:
- "v*.*.*"

jobs:
build_wheels:
name: Build wheels for ${{ matrix.platforms[1] }} with Python ${{ matrix.python }}
runs-on: ${{ matrix.platforms[0] }}
strategy:
matrix:
platforms:
- [ubuntu-20.04, manylinux_x86_64]
- [ubuntu-20.04, musllinux_x86_64]
- [macos-13, macosx_x86_64]
- [macos-14, macosx_arm64]
- [windows-2019, win_amd64]
- [windows-2019, win32]
python: ["cp39", "cp310", "cp311", "cp312"]

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5

- name: Build wheels
uses: pypa/cibuildwheel@v2.18.1
env:
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.platforms[1] }}


- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.python }}-${{ matrix.platforms[1] }}
path: ./wheelhouse/*.whl

0 comments on commit f920805

Please sign in to comment.