Skip to content

Commit ec84f4b

Browse files
committed
chore: add cargo-valgrind CI workflow
1 parent 60cd225 commit ec84f4b

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/valgrind.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
on:
2+
push:
3+
branches: [main, dev]
4+
pull_request:
5+
6+
name: valgrind
7+
8+
jobs:
9+
cargo-valgrind:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest]
14+
rust:
15+
- stable
16+
steps:
17+
- name: Cancel Previous Runs
18+
uses: styfle/[email protected]
19+
with:
20+
access_token: ${{ secrets.GITHUB_TOKEN }}
21+
22+
- uses: actions/checkout@v2
23+
with:
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
submodules: recursive
26+
- uses: actions-rs/toolchain@v1
27+
with:
28+
toolchain: ${{ matrix.rust }}
29+
override: true
30+
- uses: Swatinem/rust-cache@v1
31+
- run: sudo apt-get update -y
32+
if: matrix.os == 'ubuntu-latest'
33+
- run: sudo apt-get install -y valgrind
34+
if: matrix.os == 'ubuntu-latest'
35+
- run: cargo install cargo-valgrind
36+
- name: run cargo valgrind
37+
run: |
38+
cargo valgrind test --all-features

0 commit comments

Comments
 (0)