Skip to content

Update NGT to 2.1.3 #23

Update NGT to 2.1.3

Update NGT to 2.1.3 #23

Workflow file for this run

name: Build & Test
on:
push:
branches:
- master
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build-and-test:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
feature:
- shared_mem
- large_data
- quantized
- quantized,qg_optim
- large_data,shared_mem
- large_data,quantized
- static
- static,quantized
- static,quantized,qg_optim
- static,shared_mem,large_data
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- run: rustup update
- run: cargo build --features ${{ matrix.feature }}
- run: cargo fmt --check --all
- run: cargo clippy --features ${{ matrix.feature }} -- -D warnings
- if: ${{ !contains(matrix.feature, 'static') }}
run: |
LD_LIBRARY_PATH=$(find ./target -name "libngt.so" | tail -n1 | xargs dirname)
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> $GITHUB_ENV
- run: cargo test --features ${{ matrix.feature }} --verbose