Skip to content

Add thread-safe feature and use ref counting/interior mutability fo… #7

Add thread-safe feature and use ref counting/interior mutability fo…

Add thread-safe feature and use ref counting/interior mutability fo… #7

Workflow file for this run

name: Rust
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo clippy -- -Dwarnings
- run: cargo fmt --check
- run: cargo doc
build:
name: Build, Test
strategy: { matrix: { os: [ ubuntu-latest, macos-latest, windows-latest ] } }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo build --release
- run: cargo test --release
- run: cargo build --release --no-default-features
- run: cargo test --release --no-default-features
- run: cargo build --release --features thread-safe
- run: cargo test --release --features thread-safe