Debian Codegraph @

.github/workflows/rust.yaml

raw symbols SCIP
1 name: Rust
2
3 on: [push, pull_request]
4
5 jobs:
6 clippy:
7 runs-on: ubuntu-latest
8 steps:
9 - uses: actions/checkout@v3
10 - uses: actions-rs/toolchain@v1
11 with:
12 toolchain: stable
13 override: true
14 profile: minimal
15 components: clippy
16 - name: Clippy
17 uses: actions-rs/cargo@v1
18 with:
19 command: clippy
20 args: --all --all-targets -- -Dwarnings
21
22 test:
23 strategy:
24 matrix:
25 os:
26 - ubuntu-latest
27 - windows-latest
28 - macos-latest
29 runs-on: ${{ matrix.os }}
30 steps:
31 - uses: actions/checkout@v3
32 - uses: actions-rs/toolchain@v1
33 with:
34 toolchain: stable
35 override: true
36 profile: minimal
37 - name: Test all-targets
38 uses: actions-rs/cargo@v1
39 with:
40 command: test
41 args: --workspace --all-targets
42 - name: Test docs
43 uses: actions-rs/cargo@v1
44 with:
45 command: test
46 args: --workspace --doc
47
48 docs:
49 runs-on: ubuntu-latest
50 name: Build-test docs
51 steps:
52 - uses: actions/checkout@v3
53 - uses: actions-rs/toolchain@v1
54 with:
55 toolchain: stable
56 override: true
57 profile: minimal
58 - name: Document all crates
59 uses: actions-rs/cargo@v1
60 env:
61 RUSTDOCFLAGS: -Dwarnings
62 with:
63 command: doc
64 args: --all --all-features --no-deps --document-private-items