Skip to content

Commit

Permalink
add ci build wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
synodriver committed Mar 26, 2024
1 parent ad8e0e9 commit 96725ec
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build_wheel_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: build wheel with ci

on:
workflow_dispatch:

jobs:
build:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
fail-fast: false
env:
CIBW_BEFORE_BUILD: pip install -r requirements.txt
CIBW_ARCHS_LINUX: "x86_64 aarch64"
CIBW_ARCHS_WINDOWS: "AMD64 x86"
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
CIBW_CONFIG_SETTINGS: "--use-cython --use-cffi"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.17.0
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ def main():
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
Expand Down

0 comments on commit 96725ec

Please sign in to comment.