-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (69 loc) · 2.28 KB
/
Copy pathci.yml
File metadata and controls
81 lines (69 loc) · 2.28 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
name: CI
on:
workflow_dispatch:
jobs:
rust:
name: Rust Checks
runs-on: ubuntu-24.04
env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
steps:
- uses: actions/checkout@v4
- name: Authenticate cargo git fetch (private quire-rs)
run: git config --global url."https://x-access-token:${{ secrets.REGISTRY_TOKEN }}@github.com/".insteadOf "https://github.com/"
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache cargo artifacts
uses: Swatinem/rust-cache@v2
- name: Format
run: make fmt-check
- name: Lint
run: make lint
- name: Test
run: make test
- name: Unsafe audit
run: make audit-unsafe
- name: Thin-boundary audit
run: make audit-thin-boundary
licenses:
name: License + bans Check
runs-on: ubuntu-24.04
env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
steps:
- uses: actions/checkout@v4
- name: Authenticate cargo git fetch (private quire-rs)
run: git config --global url."https://x-access-token:${{ secrets.REGISTRY_TOKEN }}@github.com/".insteadOf "https://github.com/"
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo artifacts
uses: Swatinem/rust-cache@v2
- name: Install cargo-deny
uses: taiki-e/install-action@v2
with:
tool: cargo-deny
- name: cargo deny check licenses
run: make deny
- name: cargo deny check bans
run: make deny-bans
bench:
name: Latency budget (NFR-001)
runs-on: ubuntu-24.04
env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
steps:
- uses: actions/checkout@v4
- name: Authenticate cargo git fetch (private quire-rs)
run: git config --global url."https://x-access-token:${{ secrets.REGISTRY_TOKEN }}@github.com/".insteadOf "https://github.com/"
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo artifacts
uses: Swatinem/rust-cache@v2
- name: Install hyperfine
uses: taiki-e/install-action@v2
with:
tool: hyperfine
- name: Run bench (p95 ≤ 50 ms gate)
run: make bench