Skip to content

Commit

Permalink
Add valgrind
Browse files Browse the repository at this point in the history
Bench: 2134743
  • Loading branch information
SzilBalazs committed Aug 17, 2023
1 parent c974f69 commit ec6f8f5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Validate Bench & Run Tests

on: [push, pull_request]
on: [push]

jobs:
WhiteCore:
Expand All @@ -16,7 +16,7 @@ jobs:
suffix: "-linux"
packages: |
sudo apt-get update
sudo apt-get install clang-15
sudo apt-get install clang-15 valgrind
- os: windows-latest
suffix: "-win"
exe-suffix: ".exe"
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Build WhiteCore
run: |
clang++ --version
make EXE=WhiteCore-${{matrix.arch}}${{matrix.suffix}} ARCH=${{matrix.arch}}
make EXE=WhiteCore-${{matrix.arch}}${{matrix.suffix}} ARCH=${{matrix.arch}} build=debug
- name: Run tests
run: ./WhiteCore-${{matrix.arch}}${{matrix.suffix}} test
Expand All @@ -56,6 +56,11 @@ jobs:
echo "::error::The commit bench ${{steps.obtain_bench.outputs.COMMIT_BENCH}} is not equal to the actual bench ${{steps.obtain_bench.outputs.BENCH}}!"
exit 1
- name: Run Valgrind
if: runner.os == 'Linux'
run: |
valgrind --error-exitcode=1 --errors-for-leak-kinds=all --leak-check=full ./WhiteCore bench
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit ec6f8f5

Please sign in to comment.