Debian Codegraph @

.github/workflows/ci.yaml

raw symbols SCIP
1 on: [push, pull_request]
2
3 name: CI
4
5 jobs:
6 check:
7 name: Check
8 runs-on: ubuntu-latest
9 steps:
10 - uses: actions/checkout@v2
11 - uses: actions-rs/toolchain@v1
12 with:
13 profile: minimal
14 toolchain: stable
15 override: true
16 - uses: actions-rs/cargo@v1
17 with:
18 command: check
19 args: --tests
20
21 build_no_std:
22 name: Build on no_std
23 runs-on: ubuntu-latest
24 steps:
25 - uses: actions/checkout@v2
26 - uses: actions-rs/toolchain@v1
27 with:
28 profile: minimal
29 toolchain: stable
30 target: thumbv7em-none-eabi
31 override: true
32 - uses: actions-rs/cargo@v1
33 with:
34 command: build
35 args: >-
36 --verbose
37 --target thumbv7em-none-eabi
38 --manifest-path tests/test_no_std/Cargo.toml
39
40 test:
41 name: Test Suite
42 runs-on: ubuntu-latest
43 steps:
44 - uses: actions/checkout@v2
45 - uses: actions-rs/toolchain@v1
46 with:
47 profile: minimal
48 toolchain: stable
49 override: true
50 - uses: actions-rs/cargo@v1
51 with:
52 command: test
53
54 fmt:
55 name: Rustfmt
56 runs-on: ubuntu-latest
57 steps:
58 - uses: actions/checkout@v2
59 - uses: actions-rs/toolchain@v1
60 with:
61 profile: minimal
62 toolchain: stable
63 override: true
64 - run: rustup component add rustfmt
65 - uses: actions-rs/cargo@v1
66 with:
67 command: fmt
68 args: --all -- --check
69
70 clippy:
71 name: Clippy
72 runs-on: ubuntu-latest
73 steps:
74 - uses: actions/checkout@v2
75 - uses: actions-rs/toolchain@v1
76 with:
77 profile: minimal
78 toolchain: stable
79 override: true
80 - run: rustup component add clippy
81 - uses: actions-rs/cargo@v1
82 with:
83 command: clippy
84 args: --tests -- -D warnings