chore: release v2.0.0 #12
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| msrv: | |
| name: msrv build (1.85.0 ${{ matrix.features }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| features: | |
| - "--no-default-features" | |
| - "--features serde" | |
| - "--features rayon" | |
| - "--all-features" | |
| env: | |
| RUSTUP_TOOLCHAIN: 1.85.0 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: 1.85.0 | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| key: msrv-${{ matrix.features }} | |
| # MSRV is verified on the published crate only — dev-deps (nalgebra, | |
| # criterion, etc.) are not part of the consumer-facing surface and | |
| # may require a newer rustc than lambert_izzo itself. | |
| - run: cargo build -p lambert_izzo ${{ matrix.features }} | |
| test: | |
| name: test (stable ${{ matrix.features }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| features: | |
| - "--no-default-features" | |
| - "--features serde" | |
| - "--features rayon" | |
| - "--all-features" | |
| env: | |
| RUSTUP_TOOLCHAIN: stable | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| key: test-${{ matrix.features }} | |
| - run: cargo build --workspace ${{ matrix.features }} | |
| - run: cargo test --workspace ${{ matrix.features }} | |
| - run: cargo test --doc -p lambert_izzo ${{ matrix.features }} | |
| clippy: | |
| name: clippy | |
| runs-on: ubuntu-latest | |
| env: | |
| RUSTUP_TOOLCHAIN: stable | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| key: clippy | |
| - run: cargo clippy --workspace --all-targets --all-features -- -D warnings | |
| docs: | |
| name: docs | |
| runs-on: ubuntu-latest | |
| env: | |
| RUSTUP_TOOLCHAIN: stable | |
| RUSTDOCFLAGS: -D warnings | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| key: docs | |
| - run: cargo doc --workspace --no-deps --all-features | |
| wasm: | |
| name: wasm build | |
| runs-on: ubuntu-latest | |
| env: | |
| RUSTUP_TOOLCHAIN: stable | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-unknown-unknown | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| key: wasm | |
| - run: cargo build --target wasm32-unknown-unknown -p lambert_izzo --lib | |
| - run: cargo build --target wasm32-unknown-unknown -p lambert_izzo --lib --features serde | |
| - run: cargo build --target wasm32-unknown-unknown -p lambert_izzo_wasm --lib | |
| stress: | |
| name: stress example | |
| runs-on: ubuntu-latest | |
| env: | |
| RUSTUP_TOOLCHAIN: stable | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| key: stress | |
| - run: cargo run --release -p lambert_izzo --example stress | |
| links: | |
| name: markdown link check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: lychee | |
| uses: lycheeverse/lychee-action@v2 | |
| with: | |
| args: --no-progress --verbose --max-concurrency 4 --config lychee.toml './**/*.md' | |
| fail: true |