|
|
|
@ -106,6 +106,36 @@ jobs: |
|
|
|
|
files: oxigraph_server_${{ github.event.release.tag_name }}_x86_64_windows_msvc.exe |
|
|
|
|
if: github.event_name == 'release' |
|
|
|
|
|
|
|
|
|
python_sdist: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- run: rustup update |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- uses: actions/setup-python@v4 |
|
|
|
|
with: |
|
|
|
|
python-version: "3.12" |
|
|
|
|
cache: pip |
|
|
|
|
cache-dependency-path: '**/requirements.dev.txt' |
|
|
|
|
- run: pip install -r python/requirements.dev.txt |
|
|
|
|
- run: maturin build -m python/Cargo.toml |
|
|
|
|
- run: pip install --no-index --find-links=target/wheels/ pyoxigraph |
|
|
|
|
- run: rm -r target/wheels |
|
|
|
|
- run: python generate_stubs.py pyoxigraph pyoxigraph.pyi --black |
|
|
|
|
working-directory: ./python |
|
|
|
|
- run: maturin sdist -m python/Cargo.toml |
|
|
|
|
- uses: actions/upload-artifact@v3 |
|
|
|
|
with: |
|
|
|
|
name: pyoxigraph_source |
|
|
|
|
path: target/wheels/*.tar.gz |
|
|
|
|
- run: pip install twine && twine upload target/wheels/* |
|
|
|
|
env: |
|
|
|
|
TWINE_USERNAME: __token__ |
|
|
|
|
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} |
|
|
|
|
if: github.event_name == 'release' |
|
|
|
|
|
|
|
|
|
wheel_linux: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
strategy: |
|
|
|
@ -221,7 +251,6 @@ jobs: |
|
|
|
|
- run: python generate_stubs.py pyoxigraph pyoxigraph.pyi --black |
|
|
|
|
working-directory: ./python |
|
|
|
|
- run: maturin build --release -m python/Cargo.toml --features abi3 |
|
|
|
|
- run: maturin sdist -m python/Cargo.toml |
|
|
|
|
- uses: actions/upload-artifact@v3 |
|
|
|
|
with: |
|
|
|
|
name: pyoxigraph_wheel_x86_64_windows |
|
|
|
|