Add thread-safe
feature and use ref counting/interior mutability fo…
#7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |