snp-index 0.1.2

Fast SNP indexing and read matching with scdata integration (cell × SNP sparse matrices)
Documentation
name: Rust

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

jobs:
  build-test:
    runs-on: ubuntu-latest
    steps:
      # 1. Check out your code
      - uses: actions/checkout@v4

      # 2. Install required native libraries for rust-htslib
      - name: Install HTSlib dependencies
        run: |
          sudo apt-get update
          sudo apt-get install -y \
            libhts-dev \
            libbz2-dev \
            liblzma-dev \
            libz-dev \
            pkg-config

      # 3. Set up Rust
      - uses: actions-rs/toolchain@v1
        with:
          toolchain: stable
          override: true

      # 4. Build and run tests
      - name: Build
        run: cargo build --verbose
      - name: Test
        run: cargo test --verbose