@@ -2,7 +2,7 @@ on: [push, pull_request]
22name : Build and Test check
33jobs :
44 builds :
5- name : " Build checks"
5+ name : Build checks
66 runs-on : ubuntu-20.04
77 strategy :
88 matrix :
@@ -16,26 +16,41 @@ jobs:
1616 target : thumbv6m-none-eabi
1717 override : true
1818 profile : minimal
19- - name : " Build workspace"
19+ - name : Build workspace
2020 uses : actions-rs/cargo@v1
2121 with :
2222 command : build
2323 args : ${{ matrix.mode }} --workspace ${{ matrix.features }}
24- - name : " Build workspace and examples"
24+ - name : Build workspace and examples
2525 uses : actions-rs/cargo@v1
2626 with :
2727 command : build
2828 args : ${{ matrix.mode }} --workspace --examples ${{ matrix.features }}
29- - name : " List built examples and clean"
29+ - name : List built examples and clean
3030 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
3232 uses : actions-rs/cargo@v1
3333 with :
3434 command : test
3535 args : --tests --target x86_64-unknown-linux-gnu ${{ matrix.features }}
36- - name : " Test docs"
36+ - name : Test docs
3737 uses : actions-rs/cargo@v1
3838 with :
3939 command : test
4040 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 }}
4156
0 commit comments