Skip to content

1.0.8

1.0.8 #19

Workflow file for this run

name: Build & Publish
on:
release:
types: [created]
jobs:
build:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
name: Install Python
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.23.3
- name: Get submodules
run: git submodule update --init --recursive
- name: Build wheels for Windows
if: startsWith(matrix.os, 'windows')
run: |
python -m cibuildwheel --output-dir wheels
env:
CIBW_SKIP: "cp27-* pp27-*" # skip Python 2.7 wheels
- name: Build wheels for mac and manylinux
if: "!startsWith(matrix.os, 'windows')"
run: |
python -m cibuildwheel --output-dir wheels
env:
CIBW_ARCHS_MACOS: "auto x86_64 universal2 arm64"
- uses: actions/upload-artifact@v3
name: Upload wheels
with:
name: wheels
path: ./wheels/*.whl
publish:
needs: build
name: Publish to PyPI
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.x'
- name: Install twine
run: |
python -m pip install --upgrade pip
pip install twine
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
name: wheels
path: ./wheels
- name: Publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: twine upload ./wheels/* --skip-existing