-
-
Notifications
You must be signed in to change notification settings - Fork 8
39 lines (35 loc) · 1016 Bytes
/
memory_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
name: 'Test Memory: Valgrind'
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 * * */5'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Install'
run: sudo apt install valgrind
- name: Build
env:
CXX: 'g++-14'
CC: 'gcc-14'
COMMAND: 'valgrind --error-exitcode=1 --leak-check=full --track-origins=yes'
run: cmake -S . -B 'build'
- name: 'Build'
run: cmake --build 'build' --verbose --parallel 4
- name: 'Test'
run: ctest --test-dir 'build' --timeout 5 --tests-regex 'kalman' --verbose --parallel 4