-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (38 loc) · 1.06 KB
/
valgrind.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
on:
push:
branches: [main, dev]
pull_request:
name: valgrind
jobs:
cargo-valgrind:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
rust:
- stable
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- uses: Swatinem/rust-cache@v2
- run: sudo apt-get update -y
if: matrix.os == 'ubuntu-latest'
- run: sudo apt-get install -y valgrind
if: matrix.os == 'ubuntu-latest'
- run: cargo install cargo-valgrind
- name: run cargo valgrind
run: |
cargo valgrind test --all-targets --all-features
- name: run cargo valgrind on doc tests
run: |
cargo valgrind test --doc --all-features