Debian Codegraph @

.cargo/vendor/arbitrary/.github/workflows/rust.yml

raw
1 name: Rust
2
3 on: [push, pull_request]
4
5 jobs:
6 vanilla_build:
7 name: Vanilla Build
8 runs-on: ubuntu-latest
9 steps:
10 - uses: actions/checkout@v3
11 - run: rustup update
12 - name: Build
13 run: cargo build --verbose --all
14 - name: Run tests
15 run: cargo test --verbose --all
16 all_features_build:
17 name: All Features Enabled Build
18 runs-on: ubuntu-latest
19 steps:
20 - uses: actions/checkout@v3
21 - run: rustup update
22 - name: Build
23 run: cargo build --verbose --all-features --all
24 - name: Run tests
25 run: cargo test --verbose --all-features --all
26 - name: Build Examples
27 run: cargo build --examples --all-features --all
28 msrv:
29 name: Minimum Supported Rust Version
30 runs-on: ubuntu-latest
31 steps:
32 - uses: actions/checkout@v3
33 - run: rustup toolchain add 1.63
34 - name: Build
35 run: cargo +1.63 check --lib --all-features
36 clippy:
37 name: Clippy
38 runs-on: ubuntu-latest
39 steps:
40 - uses: actions/checkout@v3
41 - run: rustup update
42 - run: rustup component add clippy
43 - run: cargo clippy --all-features --workspace -- -Dclippy::all
44 rustfmt:
45 name: Check rustfmt
46 runs-on: ubuntu-latest
47 steps:
48 - uses: actions/checkout@v3
49 - run: rustup update
50 - run: rustup component add rustfmt --toolchain stable
51 - run: cargo +stable fmt --all -- --check
52 fuzz:
53 name: Run `int_in_range` fuzz target
54 runs-on: ubuntu-latest
55 steps:
56 - uses: actions/checkout@v3
57 - run: rustup update
58 - name: "Install nightly"
59 run: rustup toolchain install nightly && rustup default nightly
60 - name: "Install `cargo-fuzz`"
61 run: cargo install cargo-fuzz
62 - name: "Fuzz for 3 minutes"
63 run: cargo fuzz run int_in_range -- -max_total_time=$((3 * 60))