|
10 | 10 | env: |
11 | 11 | CARGO_TERM_COLOR: always |
12 | 12 | RUSTFLAGS: "-D warnings" |
| 13 | + # Pin the toolchain so CI matches local dev (no rustup here — the dev box is |
| 14 | + # Nix-pinned at this version) and clippy/rustfmt can't drift ahead on the |
| 15 | + # runner. Keep in sync with rust-toolchain.toml; bump both together. |
| 16 | + RUST_TOOLCHAIN: "1.95.0" |
13 | 17 |
|
14 | 18 | jobs: |
15 | 19 | fmt: |
|
19 | 23 | - uses: actions/checkout@v5 |
20 | 24 | - uses: dtolnay/rust-toolchain@stable |
21 | 25 | with: |
| 26 | + toolchain: ${{ env.RUST_TOOLCHAIN }} |
22 | 27 | components: rustfmt |
23 | 28 | - run: cargo fmt --all -- --check |
24 | 29 |
|
|
29 | 34 | - uses: actions/checkout@v5 |
30 | 35 | - uses: dtolnay/rust-toolchain@stable |
31 | 36 | with: |
| 37 | + toolchain: ${{ env.RUST_TOOLCHAIN }} |
32 | 38 | components: clippy |
33 | 39 | - uses: Swatinem/rust-cache@v2 |
34 | 40 | - run: cargo clippy --workspace --all-targets --all-features -- -D warnings |
|
43 | 49 | steps: |
44 | 50 | - uses: actions/checkout@v5 |
45 | 51 | - uses: dtolnay/rust-toolchain@stable |
| 52 | + with: |
| 53 | + toolchain: ${{ env.RUST_TOOLCHAIN }} |
46 | 54 | - uses: Swatinem/rust-cache@v2 |
47 | 55 | - run: cargo build --workspace --all-targets |
48 | 56 | - run: cargo test --workspace --all-targets |
|
53 | 61 | steps: |
54 | 62 | - uses: actions/checkout@v5 |
55 | 63 | - uses: dtolnay/rust-toolchain@stable |
| 64 | + with: |
| 65 | + toolchain: ${{ env.RUST_TOOLCHAIN }} |
56 | 66 | - uses: Swatinem/rust-cache@v2 |
57 | 67 | # PRD G6: the server install path must keep building — the CLI behind |
58 | 68 | # its `cli` feature gate, and the agent without the clipboard's |
|
66 | 76 | steps: |
67 | 77 | - uses: actions/checkout@v5 |
68 | 78 | - uses: dtolnay/rust-toolchain@stable |
| 79 | + with: |
| 80 | + toolchain: ${{ env.RUST_TOOLCHAIN }} |
69 | 81 | - uses: Swatinem/rust-cache@v2 |
70 | 82 | - run: cargo build --bin vault --release |
71 | 83 | - name: Verify attribution block |
|
88 | 100 | steps: |
89 | 101 | - uses: actions/checkout@v5 |
90 | 102 | - uses: dtolnay/rust-toolchain@stable |
| 103 | + with: |
| 104 | + toolchain: ${{ env.RUST_TOOLCHAIN }} |
91 | 105 | - uses: rustsec/audit-check@v2 |
92 | 106 | with: |
93 | 107 | token: ${{ secrets.GITHUB_TOKEN }} |
|
0 commit comments