Skip to content

ref

ref #62

Workflow file for this run

name: Cargo Build & Test
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Rust project - latest
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
lfs: true
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake libclang-dev clang
- name: Build and install SuiteSparse:GraphBLAS
run: |
git clone --depth 1 https://github.com/DrTimothyAldenDavis/GraphBLAS.git
cd GraphBLAS
make compact
sudo make install
- name: Build and install LAGraph
run: |
cd deps/LAGraph
make
sudo make install
- name: Install Rust toolchain
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Build (with regenerated bindings)
run: cargo build --features regenerate-bindings --verbose
- name: Test
run: LD_LIBRARY_PATH=/usr/local/lib cargo test --verbose