Skip to content

Commit

Permalink
sortof working Python bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
carderne committed Apr 9, 2024
1 parent bd36286 commit a100cdf
Show file tree
Hide file tree
Showing 10 changed files with 235 additions and 188 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
env:
RELEASE_TAG: ${{ github.ref }}
run: |
sed -i "s/0\\.0\\.1/${RELEASE_TAG##*\/v}/" Cargo.toml
sed -i "s/0\\.0\\.1/${RELEASE_TAG##*\/v}/" Cargo.lock
sed -i "s/0\\.0\\.999/${RELEASE_TAG##*\/v}/" Cargo.toml
sed -i "s/0\\.0\\.999/${RELEASE_TAG##*\/v}/" Cargo.lock
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --all-features
Expand Down
35 changes: 30 additions & 5 deletions .github/workflows/maturin.yml → .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: pypi

on:
push:
tags:
- "v*"
workflow_dispatch:

permissions:
Expand All @@ -26,9 +27,15 @@ jobs:
target: ppc64le
steps:
- uses: actions/checkout@v4
- name: set version
env:
RELEASE_TAG: ${{ github.ref }}
run: |
sed -i "s/0\\.0\\.999/${RELEASE_TAG##*\/v}/" Cargo.toml
sed -i "s/0\\.0\\.999/${RELEASE_TAG##*\/v}/" Cargo.lock
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.12'
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -53,9 +60,15 @@ jobs:
target: x86
steps:
- uses: actions/checkout@v4
- name: set version
env:
RELEASE_TAG: ${{ github.ref }}
run: |
sed -i "s/0\\.0\\.999/${RELEASE_TAG##*\/v}/" Cargo.toml
sed -i "s/0\\.0\\.999/${RELEASE_TAG##*\/v}/" Cargo.lock
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.12'
architecture: ${{ matrix.platform.target }}
- name: Build wheels
uses: PyO3/maturin-action@v1
Expand All @@ -80,9 +93,15 @@ jobs:
target: aarch64
steps:
- uses: actions/checkout@v4
- name: set version
env:
RELEASE_TAG: ${{ github.ref }}
run: |
sed -i "s/0\\.0\\.999/${RELEASE_TAG##*\/v}/" Cargo.toml
sed -i "s/0\\.0\\.999/${RELEASE_TAG##*\/v}/" Cargo.lock
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.12'
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -99,6 +118,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set version
env:
RELEASE_TAG: ${{ github.ref }}
run: |
sed -i "s/0\\.0\\.999/${RELEASE_TAG##*\/v}/" Cargo.toml
sed -i "s/0\\.0\\.999/${RELEASE_TAG##*\/v}/" Cargo.lock
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/build.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
name: test
on:
push:
branches: [ "main" ]
Expand Down

0 comments on commit a100cdf

Please sign in to comment.