Skip to content

Commit

Permalink
Refactor build workflow: Remove cibuildwheel dependency and update wh…
Browse files Browse the repository at this point in the history
…eel building process with auditwheel repair for Linux
  • Loading branch information
royshil committed Nov 8, 2024
1 parent 0cb62c9 commit 479441e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,22 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install numpy cmake wheel setuptools build cibuildwheel
pip install numpy cmake wheel setuptools build
- name: Build wheel
env:
SIMPLER_WHISPER_ACCELERATION: ${{ matrix.acceleration }}
SIMPLER_WHISPER_PLATFORM: ${{ matrix.platform }}
SIMPLER_WHISPER_PYTHON_VERSION: ${{ matrix.python-version }}
CIBW_BUILD: cp${{ matrix.python-version == '3.11' && '311' || '312' }}-*
CIBW_SKIP: "*-musllinux_*" # Skip musllinux builds unless you need them
run: |
python setup.py build_ext --inplace
python -m cibuildwheel --output-dir dist
python -m build --wheel
- name: Linux auditwheel repair
if: startsWith(matrix.os, 'ubuntu') == true
run: |
python -m pip install auditwheel
auditwheel repair dist/*.whl
- name: Install built wheel Non-Windows
if: startsWith(matrix.os, 'windows') == false
Expand Down

0 comments on commit 479441e

Please sign in to comment.