-
-
Notifications
You must be signed in to change notification settings - Fork 43
36 lines (34 loc) · 1.04 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Test
on:
- push
- pull_request
jobs:
test:
strategy:
matrix:
toolchain:
- "1.70.0" # remember to update rust-version in Cargo.toml
- "stable"
- "nightly"
flags:
- ""
- "--features variant"
- "--features alloc"
- "--features std"
- "--features alloc,variant"
- "--features std,variant"
- "--features nohash-hasher,variant"
include:
- toolchain: "nightly"
flags: "-Z minimal-versions --all-features"
runs-on: ubuntu-latest
steps:
- run: sudo apt-get update && sudo apt-get install -y valgrind
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --no-default-features ${{ matrix.flags }}
- run: cargo doc --no-default-features ${{ matrix.flags }}
- run: cargo bench --no-default-features ${{ matrix.flags }}
- run: cargo check --manifest-path fuzz/Cargo.toml