feat: add threading support to bwa mem #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build wheels | |
on: | |
pull_request: | |
workflow_call: | |
workflow_dispatch: | |
jobs: | |
build-wheels: | |
name: Build wheels for ${{ matrix.python }}-${{ matrix.platform.target }}_${{ matrix.platform.arch }} on ${{ matrix.platform.os }} | |
runs-on: ${{ matrix.platform.os }} | |
strategy: | |
matrix: | |
python: [cp39, cp310, cp311, cp312] | |
platform: | |
- os: ubuntu-latest | |
target: manylinux | |
arch: x86_64 | |
- os: ubuntu-latest | |
target: musllinux | |
arch: x86_64 | |
# These don't work right now - they just hang while pulling the build image from quay. | |
# If this doesn't resolve itself, we could try to configure different images: | |
# https://cibuildwheel.readthedocs.io/en/stable/options/. | |
# - os: ubuntu-latest | |
# target: manylinux | |
# arch: aarch64 | |
# - os: ubuntu-latest | |
# target: musllinux | |
# arch: aarch64 | |
- os: macos-latest | |
target: macosx | |
arch: x86_64 | |
# Skipping macos arm64 builds because cibuildwheel currently doesn't support testing | |
# arm64 macos wheels on github action runners. | |
# See: https://github.com/pypa/cibuildwheel/issues/2111 | |
# - os: macos-latest | |
# target: macosx | |
# arch: arm64 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "true" | |
- uses: actions/setup-python@v5 | |
if: runner.os != 'macOS' || runner.arch != 'ARM64' | |
# See: https://cibuildwheel.pypa.io/en/stable/faq/#macos-building-cpython-38-wheels-on-arm64 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
if: runner.os == 'macOS' && runner.arch == 'ARM64' | |
- name: Install cibuildwheel | |
run: python -m pip install cibuildwheel==2.15.0 | |
- name: Set macOS deployment target | |
if: startsWith(matrix.platform.target, 'macos') | |
run: echo "MACOSX_DEPLOYMENT_TARGET=$(sw_vers -productVersion | cut -d '.' -f 1-2)" >> $GITHUB_ENV | |
- name: Build wheels | |
run: python -m cibuildwheel --output-dir wheelhouse | |
env: | |
CIBW_ARCHS: ${{ matrix.platform.arch }} | |
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.platform.target }}_${{ matrix.platform.arch }} | |
CIBW_BUILD_VERBOSITY: 1 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: pybwa-wheels-${{ matrix.python }}-${{ matrix.platform.target }}_${{ matrix.platform.arch }} | |
path: ./wheelhouse/*.whl | |
if-no-files-found: error |