Debian Codegraph @

debian/missing-sources/quote/.github/workflows/ci.yml

raw symbols SCIP
1 name: CI
2
3 on:
4 push:
5 pull_request:
6 workflow_dispatch:
7 schedule: [cron: "40 1 * * *"]
8
9 permissions:
10 contents: read
11
12 env:
13 RUSTFLAGS: -Dwarnings
14
15 jobs:
16 pre_ci:
17 uses: dtolnay/.github/.github/workflows/pre_ci.yml@master
18
19 test:
20 name: Rust ${{matrix.rust}}
21 needs: pre_ci
22 if: needs.pre_ci.outputs.continue
23 runs-on: ubuntu-latest
24 strategy:
25 fail-fast: false
26 matrix:
27 rust: [nightly, stable, beta, 1.83.0, 1.68.0]
28 timeout-minutes: 45
29 steps:
30 - uses: actions/checkout@v6
31 - uses: dtolnay/rust-toolchain@master
32 with:
33 toolchain: ${{matrix.rust}}
34 components: rust-src
35 - name: Enable type layout randomization
36 run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV
37 if: matrix.rust == 'nightly'
38 - run: cargo check
39 - run: cargo test
40 if: matrix.rust != '1.68.0'
41 - run: cargo run --manifest-path benches/Cargo.toml
42 - uses: actions/upload-artifact@v6
43 if: matrix.rust == 'nightly' && always()
44 with:
45 name: Cargo.lock
46 path: Cargo.lock
47 continue-on-error: true
48
49 minimal:
50 name: Minimal versions
51 needs: pre_ci
52 if: needs.pre_ci.outputs.continue
53 runs-on: ubuntu-latest
54 timeout-minutes: 45
55 steps:
56 - uses: actions/checkout@v6
57 - uses: dtolnay/rust-toolchain@nightly
58 - run: cargo generate-lockfile -Z minimal-versions
59 - run: cargo check --locked
60
61 doc:
62 name: Documentation
63 needs: pre_ci
64 if: needs.pre_ci.outputs.continue
65 runs-on: ubuntu-latest
66 timeout-minutes: 45
67 env:
68 RUSTDOCFLAGS: -Dwarnings
69 steps:
70 - uses: actions/checkout@v6
71 - uses: dtolnay/rust-toolchain@nightly
72 with:
73 components: rust-src
74 - uses: dtolnay/install@cargo-docs-rs
75 - run: cargo docs-rs
76
77 clippy:
78 name: Clippy
79 runs-on: ubuntu-latest
80 if: github.event_name != 'pull_request'
81 timeout-minutes: 45
82 steps:
83 - uses: actions/checkout@v6
84 - uses: dtolnay/rust-toolchain@nightly
85 with:
86 components: clippy, rust-src
87 - run: cargo clippy --tests --workspace -- -Dclippy::all -Dclippy::pedantic
88
89 miri:
90 name: Miri
91 needs: pre_ci
92 if: needs.pre_ci.outputs.continue
93 runs-on: ubuntu-latest
94 timeout-minutes: 45
95 steps:
96 - uses: actions/checkout@v6
97 - uses: dtolnay/rust-toolchain@miri
98 - run: cargo miri setup
99 - run: cargo miri test
100 env:
101 MIRIFLAGS: -Zmiri-strict-provenance
102
103 outdated:
104 name: Outdated
105 runs-on: ubuntu-latest
106 if: github.event_name != 'pull_request'
107 timeout-minutes: 45
108 steps:
109 - uses: actions/checkout@v6
110 - uses: dtolnay/rust-toolchain@stable
111 - uses: dtolnay/install@cargo-outdated
112 - run: cargo outdated --workspace --exit-code 1