Skip to content

Update to 0.1.31

Update to 0.1.31 #29

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test on macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install CMake
run: brew install cmake
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v4
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
- name: Run tests (without HF feature)
run: cargo test --verbose
- name: Run tests (with HF feature)
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: cargo test --features hf --verbose
- name: Build documentation
run: cargo doc --no-deps --features hf