Debian Codegraph @

debian/missing-sources/dtoa/.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, beta, stable, 1.86.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 - name: Enable type layout randomization
35 run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV
36 if: matrix.rust == 'nightly'
37 - run: cargo build
38 - run: cargo test
39 if: matrix.rust != '1.68.0'
40 - run: cargo build --tests --features no-panic --release
41 if: matrix.rust == 'nightly'
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 doc:
50 name: Documentation
51 needs: pre_ci
52 if: needs.pre_ci.outputs.continue
53 runs-on: ubuntu-latest
54 timeout-minutes: 45
55 env:
56 RUSTDOCFLAGS: -Dwarnings
57 steps:
58 - uses: actions/checkout@v6
59 - uses: dtolnay/rust-toolchain@nightly
60 - uses: dtolnay/install@cargo-docs-rs
61 - run: cargo docs-rs
62
63 miri:
64 name: Miri
65 needs: pre_ci
66 if: needs.pre_ci.outputs.continue
67 runs-on: ubuntu-latest
68 timeout-minutes: 45
69 steps:
70 - uses: actions/checkout@v6
71 - uses: dtolnay/rust-toolchain@miri
72 - run: cargo miri setup
73 - run: cargo miri test
74 env:
75 MIRIFLAGS: -Zmiri-strict-provenance
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@clippy
85 - run: cargo clippy --tests --benches -- -Dclippy::all -Dclippy::pedantic
86
87 outdated:
88 name: Outdated
89 runs-on: ubuntu-latest
90 if: github.event_name != 'pull_request'
91 timeout-minutes: 45
92 steps:
93 - uses: actions/checkout@v6
94 - uses: dtolnay/rust-toolchain@stable
95 - uses: dtolnay/install@cargo-outdated
96 - run: cargo outdated --exit-code 1