Skip to content

try new wheel builder #22

try new wheel builder

try new wheel builder #22

Workflow file for this run

name: CI
on:
push:
tags: [ 'v*' ]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }} - ${{ matrix.vers }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- vers: i686
os: ubuntu-20.04
- vers: aarch64
os: ubuntu-20.04
- vers: auto64
os: ubuntu-20.04
- vers: arm64
os: macos-10.15
- vers: auto64
os: macos-10.15
env:
SCCACHE_VERSION: 0.7.0
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y && yum install -y openssl-devel"
CIBW_BUILD_VERBOSITY: "1" # Make some more noise so that travis doesn't stall
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
CIBW_SKIP: "cp27-* cp34-* cp35-* pp* *-win32"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
name: Install Python
with:
python-version: "3.8"
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v1
with:
platforms: all
- name: wheels Linux ${{ matrix.vers }}
if: runner.os == 'Linux'
uses: joerick/[email protected]
env:
CIBW_ARCHS_LINUX: ${{ matrix.vers }}
- name: wheels Macos ${{ matrix.vers }}
if: runner.os == 'Macos'
uses: joerick/[email protected]
env:
CIBW_ARCHS_MACOS: ${{ matrix.vers }}
- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
- uses: actions/setup-python@v2
name: Install Python
with:
python-version: "3.8"
- name: Build sdist
run: |
python -m pip install setuptools-rust setuptools wheel
python setup.py sdist
- uses: actions/upload-artifact@v2
with:
path: dist/*.tar.gz
release:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}