mirror of
https://github.com/qdrant/qdrant.git
synced 2026-08-06 01:50:57 -05:00
* Move `DenseVector`/`MultiDenseVector` from `api` to `segment` * Move `OrderByInterface` from `api` to `segment` Reason: it's used in `edge` which shouldn't depend on `api`. * Make `shard` -> `api` dependency optional * Remove `api` from the amalgamation * Don't install protoc in edge Actions
189 lines
4.5 KiB
YAML
189 lines
4.5 KiB
YAML
name: Qdrant Edge Release Build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
publish:
|
|
description: 'Publish to PyPI'
|
|
type: boolean
|
|
default: false
|
|
required: true
|
|
|
|
|
|
jobs:
|
|
edge-py-linux:
|
|
name: Build Python wheels [Linux]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
target: [x86_64, aarch64]
|
|
manylinux: [manylinux_2_17, manylinux_2_28]
|
|
python:
|
|
- python3.10
|
|
- pypy3.11
|
|
|
|
include:
|
|
- arch: x86_64
|
|
target: x86_64-unknown-linux-musl
|
|
manylinux: musllinux_1_2
|
|
python: python3.10
|
|
|
|
- arch: aarch64
|
|
target: aarch64-unknown-linux-musl
|
|
manylinux: musllinux_1_2
|
|
python: python3.10
|
|
|
|
exclude:
|
|
- target: aarch64
|
|
manylinux: manylinux_2_17
|
|
|
|
steps:
|
|
- name: Checkout Qdrant
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Build Python wheel
|
|
uses: PyO3/maturin-action@v1
|
|
with:
|
|
command: build
|
|
args: --release --features abi3 --interpreter ${{ matrix.python }} --out dist
|
|
working-directory: lib/edge/python
|
|
target: ${{ matrix.target }}
|
|
manylinux: ${{ matrix.manylinux }}
|
|
|
|
- name: Upload Python wheel
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: qdrant-edge-${{ matrix.manylinux }}-${{ matrix.arch || matrix.target }}-${{ matrix.python }}
|
|
path: lib/edge/python/dist
|
|
|
|
|
|
edge-py-macos:
|
|
name: Build Python wheels [macOS]
|
|
|
|
runs-on: macos-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
target: [x86_64, aarch64]
|
|
python:
|
|
- label: python3.10
|
|
version: '3.10'
|
|
- pypy3.11
|
|
|
|
steps:
|
|
- name: Install Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Install Python
|
|
id: setup-python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: ${{ matrix.python.version || matrix.python }}
|
|
|
|
- name: Checkout Qdrant
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Build Python wheel
|
|
uses: PyO3/maturin-action@v1
|
|
with:
|
|
command: build
|
|
args: --release --features abi3 --interpreter ${{ steps.setup-python.outputs.python-path }} --out dist
|
|
working-directory: lib/edge/python
|
|
target: ${{ matrix.target }}
|
|
|
|
- name: Upload Python wheel
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: qdrant-edge-macos-${{ matrix.target }}-${{ matrix.python.label || matrix.python }}
|
|
path: lib/edge/python/dist
|
|
|
|
|
|
edge-py-windows:
|
|
name: Build Python wheels [Windows]
|
|
|
|
runs-on: windows-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
target: [x86_64]
|
|
python:
|
|
- label: python3.10
|
|
version: '3.10'
|
|
- pypy3.11
|
|
|
|
steps:
|
|
- name: Install Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Install Python
|
|
id: setup-python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: ${{ matrix.python.version || matrix.python }}
|
|
|
|
- name: Checkout Qdrant
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Build Python wheel
|
|
uses: PyO3/maturin-action@v1
|
|
with:
|
|
command: build
|
|
args: --release --features abi3 --interpreter ${{ steps.setup-python.outputs.python-path }} --out dist
|
|
working-directory: lib/edge/python
|
|
target: ${{ matrix.target }}
|
|
|
|
- name: Upload Python wheel
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: qdrant-edge-windows-${{ matrix.target }}-${{ matrix.python.label || matrix.python }}
|
|
path: lib/edge/python/dist
|
|
|
|
|
|
merge-artifacts:
|
|
name: Merge release artifacts
|
|
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- edge-py-linux
|
|
- edge-py-macos
|
|
- edge-py-windows
|
|
|
|
if: inputs.publish
|
|
|
|
steps:
|
|
- name: Merge release artifacts
|
|
uses: actions/upload-artifact/merge@v7
|
|
with:
|
|
name: qdrant-edge
|
|
pattern: qdrant-edge-*
|
|
delete-merged: false
|
|
|
|
|
|
publish:
|
|
name: Publish to PyPI
|
|
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- merge-artifacts
|
|
|
|
if: inputs.publish
|
|
|
|
steps:
|
|
- name: Install Python
|
|
uses: actions/setup-python@v6
|
|
|
|
- name: Download release wheels
|
|
uses: actions/download-artifact@v8
|
|
with:
|
|
name: qdrant-edge
|
|
|
|
- name: Publish to PyPI
|
|
env:
|
|
TWINE_USERNAME: __token__
|
|
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN_EDGE }}
|
|
run: |
|
|
pip install --upgrade twine
|
|
twine upload --skip-existing *
|