-
-
Notifications
You must be signed in to change notification settings - Fork 43
46 lines (44 loc) · 1.47 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
37
38
39
40
41
42
43
44
45
46
name: Test
on:
- push
- pull_request
jobs:
test:
strategy:
matrix:
toolchain:
- "1.75.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
check_no_std:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: thumbv6m-none-eabi
- run: cargo check --target thumbv6m-none-eabi --no-default-features --features variant,nohash-hasher
- run: cargo check --target thumbv6m-none-eabi --no-default-features --features alloc,variant,nohash-hasher