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 - 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
+2 -4
View File
@@ -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 }}