Skip to content

Merge pull request #19 from paradigmxyz/fix-storage #56

Merge pull request #19 from paradigmxyz/fix-storage

Merge pull request #19 from paradigmxyz/fix-storage #56

Workflow file for this run

# This file is autogenerated by maturin v1.4.0
# To re-generate, run the following command:
# ```
# maturin generate-ci github
# ```
# run build scripts, and release to pypi if this is a tag publication
name: Build
on:
push:
branches:
- master
tags:
- '*'
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- x86_64
- x86
#- aarch64 # blocked by building ring>=0.17
#- armv7 # blocked by blst 0.3.11
#- s390x # blocked by ring>=0.17
#- ppc64le # blocked by blst 0.3.11
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
# NOTE: pyo3 bindings (the default) will produce a separate wheel
# for every interpreter, while `--bindings cffi` will produce an
# interpreter-agnostic wheel. maturin actually uses `cffi` bindings
# for its own release process, but recommends using `pyo3` for new
# projects for some reason.
args: --release --out dist --find-interpreter
manylinux: auto
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
windows:
runs-on: windows-latest
strategy:
matrix:
target:
- x64
# - x86 # x86 blocked by blst 0.3.11 build failure
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: ${{ matrix.target }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
macos:
runs-on: macos-latest
strategy:
matrix:
target: [x86_64, aarch64]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
command: sdist
args: --out dist
- name: Upload sdist
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
release:
name: publish
runs-on: ubuntu-latest
# only release if this is a release
if: "startsWith(github.ref, 'refs/tags/')"
needs: [linux, windows, macos, sdist]
permissions:
# https://github.com/PyO3/maturin/issues/1575#issuecomment-1753785859
id-token: write
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
with:
command: upload
args: --non-interactive --skip-existing *