clear_on_drop 0.2.5

Helpers for clearing sensitive data on the stack and heap
Documentation
name: tests

on: [push, pull_request]

jobs:
  tests:
    name: Run tests
    runs-on: ${{ matrix.runner }}
    strategy:
      matrix:
        runner: [ubuntu-latest, windows-latest, macos-latest]
        toolchain: [1.34.2, 1.59.0, stable, beta, nightly]
    steps:
      - uses: actions/checkout@v3
      - uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: ${{ matrix.toolchain }}
          override: true
      - uses: actions/cache@v3
        with:
          path: |
            ~/.cargo/registry/index/
            ~/.cargo/registry/cache/
            ~/.cargo/git/db/
            target/
          key: ${{ runner.os }}-cargo-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml') }}
      - run: cargo build --verbose
      - run: cargo build --verbose --features=no_cc
      - run: cargo build --verbose --features=nightly
        if: ${{ matrix.toolchain == 'nightly' }}
      - run: cargo build --verbose --release
      - run: cargo build --verbose --release --features=no_cc
      - run: cargo build --verbose --release --features=nightly
        if: ${{ matrix.toolchain == 'nightly' }}
      - run: cargo test --verbose
        if: ${{ matrix.toolchain != '1.34.2' }}
      - run: cargo test --verbose --features=no_cc
        if: ${{ matrix.toolchain != '1.34.2' }}
      - run: cargo test --verbose --features=nightly
        if: ${{ matrix.toolchain == 'nightly' }}
      - run: cargo test --verbose --release
        if: ${{ matrix.toolchain != '1.34.2' }}
      - run: cargo test --verbose --release --features=no_cc
        if: ${{ matrix.toolchain != '1.34.2' }}
      - run: cargo test --verbose --release --features=nightly
        if: ${{ matrix.toolchain == 'nightly' }}
      - run: cargo bench --verbose
        if: ${{ matrix.toolchain != '1.34.2' }}
      - run: cargo bench --verbose --features=no_cc
        if: ${{ matrix.toolchain != '1.34.2' }}
      - run: cargo bench --verbose --features=nightly
        if: ${{ matrix.toolchain == 'nightly' }}