-
Notifications
You must be signed in to change notification settings - Fork 36
88 lines (83 loc) · 2.84 KB
/
ci.yml
File metadata and controls
88 lines (83 loc) · 2.84 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: CI
on:
push:
branches: [master]
pull_request:
jobs:
fmt:
name: rustfmt & miri (nightly)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2025-06-23
components: rustfmt, miri, rust-src
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: rustfmt (check)
run: cargo +nightly-2025-06-23 fmt --all -- --check
- name: miri (check)
run: cargo +nightly-2025-06-23 miri test --all-features --lib --bins --no-fail-fast --workspace --exclude wincode-fuzz
lint-test:
name: clippy & tests (MSRV)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.89.0
components: clippy
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: clippy (deny warnings)
run: cargo clippy --all-targets --all-features -- -D warnings
- name: clippy (empty features)
run: cargo clippy --no-default-features -- -D warnings
- name: clippy (alloc)
run: cargo clippy --no-default-features --features alloc -- -D warnings
- name: tests
run: cargo test --all-features --all-targets --no-fail-fast --workspace
- name: test alloc
run: cargo test --no-default-features --features alloc --no-fail-fast --workspace
- name: test doc
run: cargo test --all-features --doc --no-fail-fast --workspace
- name: test uuid no serde compat
run: cargo test uuid --no-default-features --features alloc,uuid --no-fail-fast --workspace
deny:
name: cargo-deny
runs-on: ubuntu-latest
env:
RUSTUP_TOOLCHAIN: 1.89.0
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.89.0
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: install cargo-deny
run: cargo install cargo-deny --version 0.19.0 --locked
- name: cargo deny
run: cargo deny check
fuzz:
name: fuzz smoke check (nightly)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: rustfmt (fuzz)
run: cargo +nightly fmt --manifest-path fuzz/Cargo.toml -- --check
- name: clippy (fuzz)
run: cargo +nightly clippy --manifest-path fuzz/Cargo.toml --all-targets -- -D warnings
- uses: dtolnay/install@cargo-fuzz
- run: cargo +nightly fuzz run roundtrip --no-trace-compares -- -max_len=$((5 << 20)) -max_total_time=60