Skip to content

Commit 5abf7d2

Browse files
authored
add valgrind testing to linux builds (#353)
* add valgrind testing to linux builds * typo
1 parent 44271f3 commit 5abf7d2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build-and-test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,16 @@ jobs:
3535
uses: jwlawson/actions-setup-cmake@802fa1a2c4e212495c05bf94dba2704a92a472be
3636
with:
3737
cmake-version: '3.31.x'
38+
- name: Install Valgrind (Ubuntu)
39+
if: ${{matrix.platform == 'ubuntu-latest'}}
40+
run: sudo apt-get install -y valgrind
3841
- name: Configure
3942
run: cmake -B build
4043
- name: Build
4144
run: cmake --build build
4245
- name: test
4346
run: ctest --test-dir build -C Debug
47+
- name: Run Valgrind Memory Check
48+
if: ${{matrix.platform == 'ubuntu-latest'}}
49+
run: cd ${{github.workspace}}/build/test/Dss-C/test && valgrind --error-exitcode=1 --leak-check=full ../Dss-C test
50+

0 commit comments

Comments
 (0)