mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-02-03 13:53:52 +00:00
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
name: Upload Python Package
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
release:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ${{ matrix.host }}
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
# Linux
|
|
- host: ubuntu-latest
|
|
target: x86_64-unknown-linux-gnu
|
|
- host: ubuntu-latest
|
|
target: aarch64-unknown-linux-gnu
|
|
# MacOS
|
|
- host: macos-latest
|
|
target: x86_64-apple-darwin
|
|
- host: macos-latest
|
|
target: aarch64-apple-darwin
|
|
# Windows
|
|
- host: windows-latest
|
|
target: x86_64-pc-windows-msvc
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.10'
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install setuptools wheel twine
|
|
- name: Build CKZG
|
|
run: |
|
|
cd src
|
|
make
|
|
- name: Build and publish
|
|
env:
|
|
TWINE_USERNAME: __token__
|
|
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
|
run: |
|
|
cd bindings/python
|
|
python setup.py bdist_wheel
|
|
twine upload dist/* |