Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 50 additions & 29 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# This file is autogenerated by maturin v1.4.0
# To update, run
#
# maturin generate-ci github
#
# Note that some of the platforms that are included by default aren't supported for the Holochain dependencies we're pulling in. Those have been
# commented out and will need to be removed again if you use the automated update mechanism.
# This file was generated by maturin v1.4.0 (maturin generate-ci github) and then
# edited by hand. Re-running the generator will overwrite these edits, including:
# - commented-out platforms unsupported by our Holochain dependencies
# - the `test` job that builds and runs test.py
# - the pinned Rust toolchain required by the Holochain 0.6 crates
# - per-target artifact names (required by actions/upload-artifact@v4)
name: CI

on:
Expand All @@ -21,89 +20,109 @@ permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: dtolnay/rust-toolchain@stable
- name: Build and install
run: pip install .
- name: Run tests
run: python test.py

linux:
runs-on: ubuntu-latest
needs: test
strategy:
fail-fast: false
matrix:
target: [x86_64, x86, aarch64, armv7] # Not supported: s390x, ppc64le,
target: [x86_64, x86, aarch64, armv7] # Not supported: s390x, ppc64le,
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.12'
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
manylinux: auto
rust-toolchain: stable
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-linux-${{ matrix.target }}
path: dist

# Not supported
# windows:
# runs-on: windows-latest
# needs: test
# strategy:
# matrix:
# target: [x64, x86]
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: '3.10'
# python-version: '3.12'
# architecture: ${{ matrix.target }}
# - name: Build wheels
# uses: PyO3/maturin-action@v1
# with:
# target: ${{ matrix.target }}
# args: --release --out dist --find-interpreter
# sccache: 'true'
# rust-toolchain: stable
# - name: Upload wheels
# uses: actions/upload-artifact@v3
# uses: actions/upload-artifact@v4
# with:
# name: wheels
# name: wheels-windows-${{ matrix.target }}
# path: dist

macos:
runs-on: macos-latest
needs: test
strategy:
matrix:
target: [x86_64, aarch64]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.12'
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
rust-toolchain: stable
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-macos-${{ matrix.target }}
path: dist

sdist:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
command: sdist
args: --out dist
- name: Upload sdist
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-sdist
path: dist

release:
Expand All @@ -112,13 +131,15 @@ jobs:
if: "startsWith(github.ref, 'refs/tags/')"
needs: [linux, macos, sdist] # Not supported: windows
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: wheels
pattern: wheels-*
merge-multiple: true
path: dist
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --non-interactive --skip-existing *
args: --non-interactive --skip-existing dist/*
Loading
Loading