mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +02:00
ci: use latest Valgrind (#4367)
This commit is contained in:
@@ -142,9 +142,7 @@ jobs:
|
|||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
|
|
||||||
- name: Install Valgrind
|
- name: Install Valgrind
|
||||||
run: |
|
uses: taiki-e/install-action@valgrind
|
||||||
sudo apt-get update -y
|
|
||||||
sudo apt-get install -y valgrind
|
|
||||||
|
|
||||||
# Compile tests
|
# Compile tests
|
||||||
- name: cargo build test-mem
|
- name: cargo build test-mem
|
||||||
|
|||||||
@@ -28,9 +28,7 @@ jobs:
|
|||||||
override: true
|
override: true
|
||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
- name: Install Valgrind
|
- name: Install Valgrind
|
||||||
run: |
|
uses: taiki-e/install-action@valgrind
|
||||||
sudo apt-get update -y
|
|
||||||
sudo apt-get install -y valgrind
|
|
||||||
|
|
||||||
# Compiles each of the stress test examples.
|
# Compiles each of the stress test examples.
|
||||||
- name: Compile stress test examples
|
- name: Compile stress test examples
|
||||||
@@ -38,4 +36,4 @@ jobs:
|
|||||||
|
|
||||||
# Runs each of the examples using Valgrind. Detects leaks and displays them.
|
# Runs each of the examples using Valgrind. Detects leaks and displays them.
|
||||||
- name: Run valgrind
|
- name: Run valgrind
|
||||||
run: valgrind --leak-check=full --show-leak-kinds=all ./target/release/examples/${{ matrix.stress-test }}
|
run: valgrind --error-exitcode=1 --leak-check=full --show-leak-kinds=all ./target/release/examples/${{ matrix.stress-test }}
|
||||||
|
|||||||
Reference in New Issue
Block a user