Skip to content

Commit ee0168d

Browse files
ethanglaserrfsaliev
authored andcommitted
Add runtime tests to pipeline
1 parent 1d6d23f commit ee0168d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/build-cpp-runtime-bindings.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ jobs:
6060
path: svs-cpp-runtime-bindings.tar.gz
6161
retention-days: 7 # Reduce retention due to size
6262

63+
- name: Run unit tests in Docker container
64+
continue-on-error: true # Don't fail the job if tests fail
65+
run: |
66+
docker run --rm \
67+
-v ${{ github.workspace }}:/workspace \
68+
-w /workspace \
69+
svs-manylinux228:latest \
70+
/bin/bash -c "source /etc/bashrc || true && ctest --test-dir bindings/cpp/build_cpp_bindings/tests --output-on-failure --verbose"
71+
6372
test:
6473
needs: build-cpp-runtime-bindings
6574
runs-on: ubuntu-22.04

docker/x86_64/build-cpp-runtime-bindings.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ mkdir -p /workspace/bindings/cpp/build_cpp_bindings /workspace/install_cpp_bindi
2424

2525
# Build and install runtime bindings library
2626
cd /workspace/bindings/cpp/build_cpp_bindings
27-
CC=gcc CXX=g++ cmake .. -DCMAKE_INSTALL_PREFIX=/workspace/install_cpp_bindings -DCMAKE_INSTALL_LIBDIR=lib
27+
CC=gcc CXX=g++ cmake .. -DSVS_BUILD_RUNTIME_TESTS=ON -DCMAKE_INSTALL_PREFIX=/workspace/install_cpp_bindings -DCMAKE_INSTALL_LIBDIR=lib
2828
cmake --build . -j
2929
cmake --install .
3030

0 commit comments

Comments
 (0)