Switch to foldhash-portable and add generic BuildHasher support (#24) #98
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: Continuous integration | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| check-all-targets: | |
| name: Check all targets | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: cargo check --all-targets | |
| - run: cargo check --all-targets --no-default-features | |
| - run: cargo check --all-targets --all-features | |
| test: | |
| name: Tests | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: cargo test | |
| - run: cargo test --no-default-features | |
| - run: cargo test --all-features | |
| cross-platform-test: | |
| name: Cross-platform tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| target: | |
| - powerpc-unknown-linux-gnu # 32-bit big-endian | |
| - i686-unknown-linux-gnu # 32-bit little-endian | |
| - aarch64-unknown-linux-gnu # 64-bit little-endian (ARM) | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: taiki-e/install-action@v2 | |
| with: | |
| tool: cross | |
| - run: cross test --features serde --target ${{ matrix.target }} --lib | |
| fuzz-tests: | |
| name: Fuzz tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| - run: cargo install cargo-fuzz | |
| - run: for fuzz_test in `cargo fuzz list`; do cargo fuzz run $fuzz_test -- -max_total_time=360 -detect_leaks=0 -max_len=1000000 -len_control=0 || exit 1; done | |
| lint: | |
| name: Rustfmt & Clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - run: cargo fmt --all -- --check | |
| - run: cargo clippy -- -D warnings | |
| docs: | |
| name: Build Docs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| - run: cargo doc | |
| env: | |
| RUSTDOCFLAGS: --cfg docsrs |