Skip to content

Commit

Permalink
Merge branch 'master' into revm
Browse files Browse the repository at this point in the history
also ran `cargo update`
  • Loading branch information
charles-cooper committed Apr 14, 2024
2 parents 525ec28 + 6eaef4a commit daee94f
Show file tree
Hide file tree
Showing 6 changed files with 449 additions and 238 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.1.15"
poetry-version: "1.8.2"

- name: Install deps
run: poetry install
Expand Down
147 changes: 106 additions & 41 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,129 @@
# from https://github.com/lambdaclass/cairo-rs/blob/new-poc-implementation/rust_python_ffi/.github/workflows/CI.yml
name: release
# This file is autogenerated by maturin v1.4.0
# To re-generate, run the following command:
# ```
# maturin generate-ci github
# ```
name: Release

on: workflow_dispatch
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
#- s390x # blocked by ring>=0.17
- ppc64le
steps:
- uses: actions/checkout@v3
- uses: messense/maturin-action@v1
with:
manylinux: auto
command: build
args: --release --sdist -o dist --find-interpreter
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist
- 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
sccache: 'true'
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: messense/maturin-action@v1
with:
command: build
args: --release -o dist --find-interpreter
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist
- 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
sccache: 'true'
- 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: messense/maturin-action@v1
with:
command: build
args: --release -o dist --universal2 --find-interpreter
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist
- 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
sccache: 'true'
- 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: Release
name: publish
runs-on: ubuntu-latest
needs: [ macos, windows, linux ]
# 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@v2
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Publish to PyPI
uses: messense/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
uses: PyO3/maturin-action@v1
with:
command: upload
args: --skip-existing *
args: --non-interactive --skip-existing *
Loading

0 comments on commit daee94f

Please sign in to comment.