Skip to content

Commit

Permalink
Refactor build workflow: Simplify Python version handling in Docker b…
Browse files Browse the repository at this point in the history
…uild process for consistency
  • Loading branch information
royshil committed Nov 8, 2024
1 parent f046837 commit 5e47c0d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,15 @@ jobs:
run: |
docker run --rm -v $(pwd):/io quay.io/pypa/manylinux2014_x86_64 bash -c "
cd /io &&
/opt/python/cp${{ matrix.python-version == '3.11' && '311' || '312' }}/bin/pip install numpy cmake wheel setuptools build &&
PY_VERSION=${{ matrix.python-version == '3.11' && 'cp311-cp311' || 'cp312-cp312' }} &&
/opt/python/\${PY_VERSION}/bin/pip install numpy cmake wheel setuptools build &&
SIMPLER_WHISPER_ACCELERATION=${{ matrix.acceleration }} \
SIMPLER_WHISPER_PLATFORM=${{ matrix.platform }} \
SIMPLER_WHISPER_PYTHON_VERSION=${{ matrix.python-version }} \
/opt/python/cp${{ matrix.python-version == '3.11' && '311' || '312' }}/bin/python setup.py build_ext --inplace &&
/opt/python/cp${{ matrix.python-version == '3.11' && '311' || '312' }}/bin/python -m build --wheel &&
auditwheel repair dist/*.whl"
/opt/python/\${PY_VERSION}/bin/python setup.py build_ext --inplace &&
/opt/python/\${PY_VERSION}/bin/python -m build --wheel &&
auditwheel repair dist/*.whl"
- name: Install built wheel Linux
if: matrix.os == 'ubuntu-latest'
run: |
Expand Down

0 comments on commit 5e47c0d

Please sign in to comment.