Select Git revision
helicos_flowcell.xcf
python.yml 8.39 KiB
name: Python
on:
- push
- pull_request
jobs:
wheel-linux-aarch64:
name: Build Linux wheels (Aarch64)
runs-on: ubuntu-22.04
if: "startsWith(github.ref, 'refs/tags/v')"
strategy:
matrix:
python-tag:
- cp37-manylinux_aarch64
- cp38-manylinux_aarch64
- cp39-manylinux_aarch64
- cp310-manylinux_aarch64
- cp311-manylinux_aarch64
- cp312-manylinux_aarch64
- pp37-manylinux_aarch64
- pp38-manylinux_aarch64
- pp39-manylinux_aarch64
- pp310-manylinux_aarch64
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v2
with:
platforms: all
- name: Build manylinux wheels
uses: pypa/cibuildwheel@v2.16.4
env:
CIBW_ARCHS: aarch64
CIBW_BUILD: ${{ matrix.python-tag }}
CIBW_BEFORE_ALL: "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh /dev/stdin -y"
CIBW_BEFORE_BUILD: "pip install setuptools-rust"
CIBW_BUILD_VERBOSITY: 2
CIBW_ENVIRONMENT: CARGO_NET_GIT_FETCH_WITH_CLI=true
CIBW_TEST_COMMAND: python -m unittest lightmotif.tests
with:
output-dir: dist
- uses: actions/upload-artifact@v3
with:
name: wheels
path: dist/*
wheel-linux-x86_64:
name: Build Linux wheels (x86-64)
runs-on: ubuntu-22.04
strategy:
matrix:
python-tag:
- cp37-manylinux_x86_64
- cp38-manylinux_x86_64
- cp39-manylinux_x86_64
- cp310-manylinux_x86_64
- cp311-manylinux_x86_64
- cp312-manylinux_x86_64
- pp37-manylinux_x86_64
- pp38-manylinux_x86_64
- pp39-manylinux_x86_64
- pp310-manylinux_x86_64
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Build manylinux wheels
uses: pypa/cibuildwheel@v2.16.4
env: