Skip to content

Bump version: 0.2.0 → 0.2.1 #42

Bump version: 0.2.0 → 0.2.1

Bump version: 0.2.0 → 0.2.1 #42

Workflow file for this run

name: main
on:
workflow_dispatch:
pull_request:
push:
tags:
- "*"
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- name: Clone Suitsparse
run: git clone --depth 1 --branch stable https://github.com/DrTimothyAldenDavis/SuiteSparse suitesparse
- name: Clone Pybind
run: |
git clone --depth 1 --branch stable https://github.com/pybind/pybind11 pybind11
- name: Build wheels
uses: pypa/cibuildwheel@v2.13.1
env:
CIBW_ARCHS_MACOS: x86_64 arm64
#CIBW_BEFORE_BUILD: pip install pybind11
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
upload_all:
name: Upload if release
needs: [build_wheels]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}