@@ -2,7 +2,7 @@ on: [push, pull_request]
2
2
name : Build and Test check
3
3
jobs :
4
4
builds :
5
- name : " Build checks"
5
+ name : Build checks
6
6
runs-on : ubuntu-20.04
7
7
strategy :
8
8
matrix :
@@ -16,26 +16,41 @@ jobs:
16
16
target : thumbv6m-none-eabi
17
17
override : true
18
18
profile : minimal
19
- - name : " Build workspace"
19
+ - name : Build workspace
20
20
uses : actions-rs/cargo@v1
21
21
with :
22
22
command : build
23
23
args : ${{ matrix.mode }} --workspace ${{ matrix.features }}
24
- - name : " Build workspace and examples"
24
+ - name : Build workspace and examples
25
25
uses : actions-rs/cargo@v1
26
26
with :
27
27
command : build
28
28
args : ${{ matrix.mode }} --workspace --examples ${{ matrix.features }}
29
- - name : " List built examples and clean"
29
+ - name : List built examples and clean
30
30
run : rm -vrf target/thumbv6m-none-eabi/*/examples/* | sed -e "s/removed '\(.*\)'/\1/" | xargs -l basename | grep -Ev '(-|\.d)'
31
- - name : " Test"
31
+ - name : Test
32
32
uses : actions-rs/cargo@v1
33
33
with :
34
34
command : test
35
35
args : --tests --target x86_64-unknown-linux-gnu ${{ matrix.features }}
36
- - name : " Test docs"
36
+ - name : Test docs
37
37
uses : actions-rs/cargo@v1
38
38
with :
39
39
command : test
40
40
args : --doc --target x86_64-unknown-linux-gnu ${{ matrix.features }}
41
+ - name : Clean
42
+ uses : actions-rs/cargo@v1
43
+ with :
44
+ command : clean
45
+ - uses : actions-rs/toolchain@v1
46
+ with :
47
+ toolchain : nightly
48
+ target : thumbv6m-none-eabi
49
+ override : true
50
+ profile : minimal
51
+ - name : Check unused deps
52
+ uses : aig787/cargo-udeps-action@v1
53
+ with :
54
+ version : latest
55
+ args : ${{ matrix.mode }} --workspace ${{ matrix.features }}
41
56
0 commit comments