Skip to content

Commit 0042386

Browse files
committed
Fix CI
1 parent da96d3f commit 0042386

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,25 @@ jobs:
2525
- name: Install Rust
2626
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
2727
- run: rustup target add thumbv7m-none-eabi
28+
- name: Install cargo-hack
29+
uses: taiki-e/install-action@cargo-hack
2830
- name: Install valgrind
2931
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
3439
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
3742
- run: cargo test
38-
- name: Run cargo test (valgrind)
43+
- name: Run cargo test (with valgrind)
3944
run: cargo test -- --test-threads=1
4045
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
4247

4348
msrv:
4449
runs-on: ubuntu-latest
@@ -59,10 +64,7 @@ jobs:
5964
- uses: actions/checkout@v2
6065
- name: Install Rust
6166
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
6668

6769
fmt:
6870
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)