Skip to content

Build

Build #9

Workflow file for this run

name: Build
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
jobs:
build_wheels:
name: Build wheel for ${{ matrix.config.build }}-${{ matrix.config.platform }}
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- { os: ubuntu-22.04, arch: x86_64, platform: manylinux_x86_64, build: cp* }
- { os: ubuntu-22.04, arch: aarch64, platform: manylinux_aarch64, build: cp312 }
- { os: ubuntu-22.04, arch: aarch64, platform: manylinux_aarch64, build: cp311 }
- { os: ubuntu-22.04, arch: aarch64, platform: manylinux_aarch64, build: cp310 }
- { os: ubuntu-22.04, arch: aarch64, platform: manylinux_aarch64, build: cp39 }
- { os: ubuntu-22.04, arch: aarch64, platform: manylinux_aarch64, build: cp38 }
- { os: ubuntu-22.04, arch: x86_64, platform: musllinux_x86_64, build: cp* }
- { os: macos-12, arch: x86_64, platform: macosx_x86_64, build: cp* }
- { os: macos-12, arch: arm64, platform: macosx_arm64, build: cp* }
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Build wheel
uses: pypa/[email protected]
env:
CIBW_ARCHS: "${{ matrix.config.arch }}"
CIBW_BUILD: "${{ matrix.config.build }}-${{ matrix.config.platform }}"
CIBW_SKIP: "cp36* cp37*"
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
build_sdist:
name: Build sdist
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Build sdist
run: python setup.py sdist
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
path: ./dist/*