Skip to content

[factory] compile time precondition for optimizations #2379

[factory] compile time precondition for optimizations

[factory] compile time precondition for optimizations #2379

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