-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (68 loc) · 2.54 KB
/
Copy pathci.yml
File metadata and controls
87 lines (68 loc) · 2.54 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
name: CI
on:
push:
branches: [main]
pull_request:
env:
CARGO_TERM_COLOR: always
permissions:
contents: read
checks: write
jobs:
check:
name: release gates
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Cache cargo artifacts
uses: Swatinem/rust-cache@v2
- name: Formatting
run: cargo fmt --all --check
- name: Clippy (all features)
run: cargo clippy --all-targets --all-features --no-deps -- -D warnings
- name: Tests (all targets, all features)
run: cargo test --all-targets --all-features
- name: Doc tests (all features)
run: cargo test --doc --all-features
- name: Docs (all features)
run: cargo doc --no-deps --all-features
env:
RUSTDOCFLAGS: "-D warnings"
# --all-features enables reactive-ws, which shadows the polling-only and
# no-reactive cfg branches. Exercise those distinct compile paths too so a
# feature-gated regression cannot slip through.
- name: Feature matrix (polling-only + no-reactive core)
run: |
cargo clippy --all-targets --no-default-features --features reactive-polling --no-deps -- -D warnings
cargo test --no-default-features --features reactive-polling
cargo build --no-default-features
- name: Benchmarks compile
run: cargo bench --no-run --all-features
- name: Package
run: cargo package --locked
- name: Security audit
uses: rustsec/audit-check@v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
# ark-relations records tracing-subscriber 0.2.25 as an optional
# dependency, but it is absent from the active all-target/all-feature
# graph (`cargo tree -i tracing-subscriber@0.2.25 --target all`).
ignore: RUSTSEC-2025-0055
msrv:
name: msrv (1.88)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust 1.88 (declared MSRV)
uses: dtolnay/rust-toolchain@1.88.0
- name: Cache cargo artifacts
uses: Swatinem/rust-cache@v2
# The published library must build on the MSRV advertised in Cargo.toml.
# Scoped to --lib so the dev-only example/bench toolchain requirements
# (e.g. criterion) do not constrain the consumer-facing MSRV.
- name: Check library builds on MSRV
run: cargo check --lib --locked