ci: use latest Valgrind (#4367)

This commit is contained in:
Taiki Endo
2022-09-14 21:49:32 +09:00
committed by GitHub
parent 56ffea09e5
commit ac1ae2cfbc
2 changed files with 3 additions and 7 deletions
+1 -3
View File
@@ -142,9 +142,7 @@ jobs:
- uses: Swatinem/rust-cache@v1
- name: Install Valgrind
run: |
sudo apt-get update -y
sudo apt-get install -y valgrind
uses: taiki-e/install-action@valgrind
# Compile tests
- name: cargo build test-mem
+2 -4
View File
@@ -28,9 +28,7 @@ jobs:
override: true
- uses: Swatinem/rust-cache@v1
- name: Install Valgrind
run: |
sudo apt-get update -y
sudo apt-get install -y valgrind
uses: taiki-e/install-action@valgrind
# Compiles each of the 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.
- 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 }}