Skip to content

Fix changed parameters in parallel_hnsw #413

Fix changed parameters in parallel_hnsw

Fix changed parameters in parallel_hnsw #413

Workflow file for this run

# Build the crate, run the tests, and check the code format.
name: Build and test
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs:
clippy_and_format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/clippy-check@v1
continue-on-error: true
with:
token: ${{ secrets.GITHUB_TOKEN }}
# we can't yet use all-features, as it depends on nightly
# args: --all-features
- run: cargo fmt -- --check
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: cargo test
- name: Build Docker image
run: docker build -t terminusdb-semantic-indexer .
build-and-push-image:
runs-on: ubuntu-latest
needs: [clippy_and_format, build_and_test]
if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main'
permissions:
contents: read
packages: write
env:
IMAGE_NAME: terminusdb/vectorlink
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.IMAGE_NAME }}
- name: Build and push Docker image
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Build and push Docker image
if: github.ref == 'refs/heads/main'
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}