-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (38 loc) · 1.03 KB
/
valgrind.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Memory Leak Detection
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build_and_run_valgrind:
runs-on: ubuntu-22.04
steps:
- name: Install Dependencies
run: |
sudo apt update
sudo apt install build-essential
sudo apt install cmake
sudo apt install libgtest-dev
sudo apt install dos2unix
sudo apt install valgrind
sudo apt install m4
- name: Setup Gtest
run: |
cd $(mktemp -d)
cmake /usr/src/googletest
make
sudo make install
cd -
- name: Checkout the repository
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: "true"
- name: Build
run: |
./scripts/create-debug-makefiles.sh
make
- name: Run Unit Tests
run: |
chmod +x ./scripts/run-valgrind-on-changes.sh
dos2unix ./scripts/run-valgrind-on-changes.sh
./scripts/run-valgrind-on-changes.sh