Skip to content

Initial implementation of SVS Runtime package #58

Initial implementation of SVS Runtime package

Initial implementation of SVS Runtime package #58

# Copyright 2025 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Build C++ Runtime Bindings
run-name: ${{ github.event.inputs.run_name || github.event.pull_request.title }}
on:
workflow_dispatch:
inputs:
run_name:
description: "Custom workflow name"
required: false
submodule_url:
description: "Submodule url (e.g. https://github.com/intel/ScalableVectorSearch.git)"
required: false
submodule_sha:
description: "Submodule sha/branch"
required: false
pull_request:
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
build-cpp-runtime-bindings:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v5
- name: Build Docker image
run: |
docker build -t svs-manylinux228:latest -f docker/x86_64/manylinux228/Dockerfile .
- name: Build libraries in Docker container
run: |
docker run --rm \
-v ${{ github.workspace }}:/workspace \
-w /workspace \
svs-manylinux228:latest \
/bin/bash -c "chmod +x docker/x86_64/build-cpp-runtime-bindings.sh && ./docker/x86_64/build-cpp-runtime-bindings.sh"
- name: Upload cpp runtime bindings artifacts
uses: actions/upload-artifact@v4
with:
name: svs-cpp-runtime-bindings
path: svs-cpp-runtime-bindings.tar.gz
retention-days: 7 # Reduce retention due to size
test:
needs: build-cpp-runtime-bindings
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v5
- name: Build Docker image
run: |
docker build -t svs-manylinux228:latest -f docker/x86_64/manylinux228/Dockerfile .
# Need to download for a new job
- name: Download shared libraries
uses: actions/download-artifact@v4
with:
name: svs-cpp-runtime-bindings
path: runtime_lib
- name: List available artifacts
run: |
ls -la runtime_lib/
- name: Test in Docker container
run: |
docker run --rm \
-v ${{ github.workspace }}:/workspace \
-v ${{ github.workspace }}/runtime_lib:/runtime_lib \
-w /workspace \
svs-manylinux228:latest \
/bin/bash -c "chmod +x docker/x86_64/test-cpp-runtime-bindings.sh && ./docker/x86_64/test-cpp-runtime-bindings.sh"