Clean libhts.a and bump version to rc9 #70
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: Publish wheels | |
on: | |
push: | |
branches: | |
- v[0-9]+.* | |
tags: | |
- v[0-9]+.* | |
release: | |
types: | |
- published | |
jobs: | |
build_wheels: | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
matrix: | |
os: [macos] | |
build: ["cp310-*"] | |
x64image: [manylinux_2_28] | |
steps: | |
- name: Checkout pysam | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
if: runner.os == 'Linux' | |
uses: docker/setup-qemu-action@v2 | |
with: | |
platforms: arm64 | |
- name: Build wheels | |
uses: pypa/[email protected] | |
env: | |
CIBW_BUILD: ${{ matrix.build }} | |
CIBW_SKIP: "*musllinux*" | |
CIBW_BUILD_VERBOSITY_MACOS: 3 | |
CIBW_ARCHS_LINUX: auto aarch64 | |
CIBW_ARCHS_MACOS: x86_64 arm64 | |
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.x64image }} | |
CIBW_MANYLINUX_I686_IMAGE: manylinux2014 | |
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28 | |
CIBW_TEST_SKIP: "*-*linux_i686 *-*linux_aarch64 *-macosx_arm64" | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
path: ./wheelhouse/*.whl | |
build_sdist: | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
matrix: | |
os: [ubuntu, macos] | |
python-version: [3.9] | |
steps: | |
- name: Checkout pysam | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install prerequisite Python libraries | |
run: pip install cython pytest pytest-pep8 | |
- name: Install build prerequisites | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -q --no-install-recommends --no-install-suggests libcurl4-openssl-dev | |
- name: Create source distribution | |
run: python setup.py sdist | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: dist/*.tar.gz | |
upload_pypi: | |
needs: [build_wheels, build_sdist] | |
runs-on: ubuntu-latest | |
environment: ${{ github.event_name == 'release' && 'pypi' || 'testpypi' }} | |
permissions: | |
id-token: write | |
steps: | |
- name: Get artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
name: artifact | |
path: dist | |
- name: Publish distribution to Test PyPI | |
if: github.event_name == 'push' | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
repository-url: https://test.pypi.org/legacy/ | |
- name: Publish distribution to PyPI | |
if: github.event_name == 'release' && github.event.action == 'published' | |
uses: pypa/gh-action-pypi-publish@release/v1 |