Skip to content
Merged
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
47 changes: 26 additions & 21 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: PyPI

on:
push:
branches:
- main
tags:
- "v*"
workflow_dispatch:
Expand All @@ -19,22 +21,22 @@ jobs:
strategy:
matrix:
platform:
- runner: ubuntu-latest
- runner: ubuntu-22.04
target: x86_64
manylinux: auto
- runner: ubuntu-latest
- runner: ubuntu-22.04
target: x86
manylinux: auto
- runner: ubuntu-latest
- runner: ubuntu-22.04
target: aarch64
manylinux: "2_28"
- runner: ubuntu-latest
- runner: ubuntu-22.04
target: armv7
manylinux: auto
- runner: ubuntu-latest
- runner: ubuntu-22.04
target: s390x
manylinux: auto
- runner: ubuntu-latest
- runner: ubuntu-22.04
target: ppc64le
manylinux: auto
steps:
Expand All @@ -47,7 +49,7 @@ jobs:
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter -F duckdb/bundled
sccache: "true"
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
manylinux: ${{ matrix.platform.manylinux }}
- name: Upload wheels
uses: actions/upload-artifact@v4
Expand All @@ -60,13 +62,13 @@ jobs:
strategy:
matrix:
platform:
- runner: ubuntu-latest
- runner: ubuntu-22.04
target: x86_64
- runner: ubuntu-latest
- runner: ubuntu-22.04
target: x86
- runner: ubuntu-latest
- runner: ubuntu-22.04
target: aarch64
- runner: ubuntu-latest
- runner: ubuntu-22.04
target: armv7
steps:
- uses: actions/checkout@v4
Expand All @@ -78,15 +80,14 @@ jobs:
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter -F duckdb/bundled
sccache: "true"
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
manylinux: musllinux_1_2
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-musllinux-${{ matrix.platform.target }}
path: dist

# https://github.com/gadomski/stacrs/issues/1
# windows:
# runs-on: ${{ matrix.platform.runner }}
# strategy:
Expand All @@ -106,8 +107,8 @@ jobs:
# uses: PyO3/maturin-action@v1
# with:
# target: ${{ matrix.platform.target }}
# args: --release --out dist --find-interpreter
# sccache: "true"
# args: --release --out dist --find-interpreter -F duckdb/bundled
# sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
# - name: Upload wheels
# uses: actions/upload-artifact@v4
# with:
Expand All @@ -133,7 +134,7 @@ jobs:
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter -F duckdb/bundled
sccache: "true"
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand All @@ -159,10 +160,12 @@ jobs:
name: Release
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
needs: [linux, musllinux, macos, sdist]
environment:
name: pypi
url: https://pypi.org/p/stacrs
needs:
- linux
- musllinux
# - windows
- macos
- sdist
permissions:
id-token: write
contents: write
Expand All @@ -173,7 +176,9 @@ jobs:
uses: actions/attest-build-provenance@v1
with:
subject-path: "wheels-*/*"
- uses: PyO3/maturin-action@v1
- name: Publish to PyPI
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: PyO3/maturin-action@v1
with:
command: upload
args: --non-interactive --skip-existing wheels-*/*
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ crate-type = ["cdylib"]
[dependencies]
duckdb = { version = "1.1.1" }
geojson = "0.24.1"
pyo3 = "0.23.4"
pyo3 = { version = "0.23.4", features = ["extension-module"] }
pyo3-async-runtimes = { version = "0.23.0", features = [
"tokio",
"tokio-runtime",
Expand Down