Skip to content

feat: adds product quantization to vector index #171

feat: adds product quantization to vector index

feat: adds product quantization to vector index #171

Workflow file for this run

name: Rust
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/[email protected]
- uses: actions/checkout@v4
- name: apt-get update
run: sudo apt-get update
- name: apt-get install
run: |
sudo apt-get install -y libssl3 pkg-config libssl-dev g++ build-essential ca-certificates librocksdb-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev libzstd-dev protobuf-compiler
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: cargo-
- name: Install target
run: rustup target add x86_64-unknown-linux-gnu
- name: Environment
run: |
gcc --version
g++ --version
rustc --version
cargo --version
- name: Check & Fmt & Clippy
run: |
cargo check --target x86_64-unknown-linux-gnu
cargo fmt -- --check
cargo clippy --target x86_64-unknown-linux-gnu
- name: Test
run: |
cargo test --target x86_64-unknown-linux-gnu
- name: Build
run: |
cargo build --target x86_64-unknown-linux-gnu