From 9d2ab514ebff5531bb3fc0bb6c735bd1e5884bf4 Mon Sep 17 00:00:00 2001 From: Roman Titov Date: Thu, 13 Nov 2025 15:23:06 +0100 Subject: [PATCH] Qdrant Edge CI (#7525) --- .github/workflows/edge.yml | 68 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 .github/workflows/edge.yml diff --git a/.github/workflows/edge.yml b/.github/workflows/edge.yml new file mode 100644 index 0000000000..427856a422 --- /dev/null +++ b/.github/workflows/edge.yml @@ -0,0 +1,68 @@ +name: Qdrant Edge + +on: + push: + branches: [ master, dev ] + pull_request: + branches: [ '**' ] + +jobs: + qdrant-edge-py: + name: Build Qdrant Edge Python bindings + + runs-on: ubuntu-latest + + steps: + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + + - name: Install mold + uses: rui314/setup-mold@v1 + + - name: Enable mold + run: | + mkdir .cargo + + cat >.cargo/config.toml <<-EOF + [target.x86_64-unknown-linux-gnu] + linker = "clang" + rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/mold"] + EOF + + - name: Install Protoc + uses: arduino/setup-protoc@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Install Python + uses: actions/setup-python@v6 + with: + python-version: '3.14' + + - name: Install maturin + run: pip install maturin + + - name: Checkout Qdrant + uses: actions/checkout@v5 + + - name: Restore Rust build cache + uses: Swatinem/rust-cache@v2 + + - name: Build Qdrant Edge + run: | + cd lib/edge/python + + python -m venv .venv + source .venv/bin/activate + + maturin develop --no-default-features + + - name: Run Qdrant Edge examples + run: | + cd lib/edge/python + + source .venv/bin/activate + + python examples/qdrant-edge.py + python examples/fusion-query.py + python examples/mmr-query.py