c-kzg-4844/.github/workflows/python-release.yml

46 lines
969 B
YAML
Raw Normal View History

2024-02-26 15:48:04 +00:00
name: Python Package
2024-02-21 20:05:47 +00:00
on:
push:
branches:
- main
release:
branches:
- main
jobs:
2024-02-26 15:48:04 +00:00
name: Build wheels for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
2024-02-21 20:05:47 +00:00
strategy:
matrix:
2024-02-26 15:48:04 +00:00
os:
- ubuntu-latest
- windows-latest
- macos-13
- macos-14
2024-02-21 20:05:47 +00:00
steps:
2024-02-26 15:48:04 +00:00
- uses: actions/checkout@v4
2024-02-21 20:05:47 +00:00
with:
submodules: recursive
2024-02-26 15:48:04 +00:00
- name: Build CKZG
working-directory: src
run: make
2024-02-21 20:05:47 +00:00
- uses: actions/setup-python@v4
2024-02-26 15:48:04 +00:00
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.16.5
- name: Build wheels
working-directory: bindings/python
run: python -m cibuildwheel --output-dir wheelhouse
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
working-directory: bindings/python
2024-02-21 20:05:47 +00:00
with:
2024-02-26 15:48:04 +00:00
password: ${{ secrets.PYPI_PASSWORD }}
packages-dir: wheelhouse