@@ -25,20 +25,25 @@ jobs:
25
25
- name : Install Rust
26
26
run : rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
27
27
- run : rustup target add thumbv7m-none-eabi
28
+ - name : Install cargo-hack
29
+ uses : taiki-e/install-action@cargo-hack
28
30
- name : Install valgrind
29
31
run : |
30
- sudo apt-get update
31
- sudo apt-get install -y valgrind
32
- - name : Run cargo check
33
- run : cargo check --all --all-features --all-targets
32
+ sudo apt-get update -qq
33
+ # libc6-dbg is needed to run Valgrind
34
+ sudo apt-get install -y libc6-dbg
35
+ # Use snap to install the latest Valgrind
36
+ # https://snapcraft.io/install/valgrind/ubuntu
37
+ sudo snap install valgrind --classic
38
+ - run : cargo build --all --all-features --all-targets
34
39
if : startsWith(matrix.rust, 'nightly')
35
- - name : Run cargo check (no_std)
36
- run : cargo check -- no-default-features --target thumbv7m-none-eabi
40
+ - run : cargo hack build --feature-powerset --no-dev-deps
41
+ - run : cargo hack build --feature-powerset -- no-dev-deps --target thumbv7m-none-eabi --skip std,default
37
42
- run : cargo test
38
- - name : Run cargo test (valgrind)
43
+ - name : Run cargo test (with valgrind)
39
44
run : cargo test -- --test-threads=1
40
45
env :
41
- CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER : " valgrind --leak-check=full --error-exitcode=1 "
46
+ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER : valgrind --error-exitcode=1 -- leak-check=full --show-leak-kinds=all
42
47
43
48
msrv :
44
49
runs-on : ubuntu-latest
59
64
- uses : actions/checkout@v2
60
65
- name : Install Rust
61
66
run : rustup update stable
62
- - uses : actions-rs/clippy-check@v1
63
- with :
64
- token : ${{ secrets.GITHUB_TOKEN }}
65
- args : --all-features -- -W clippy::all
67
+ - run : cargo clippy --all-features
66
68
67
69
fmt :
68
70
runs-on : ubuntu-latest
0 commit comments