Skip to content

Pin sparsediff_linalg to dd1ffd1 #107

Pin sparsediff_linalg to dd1ffd1

Pin sparsediff_linalg to dd1ffd1 #107

Workflow file for this run

name: Guard Malloc
on:
push:
branches: [main, development]
pull_request:
branches: [main, development]
jobs:
guard-malloc:
runs-on: macos-latest
steps:
- uses: actions/checkout@v5
with:
submodules: recursive
- name: Configure
run: cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug
- name: Build
run: cmake --build build --config Debug
# MallocScribble poisons freed memory (0x55), MallocGuardEdges adds
# guard pages around large allocations, and leaks --atExit reports
# memory still leaked at exit and fails the step if any is found.
- name: Run tests under guard-malloc + leaks
run: >
MallocScribble=1 MallocGuardEdges=1
leaks --atExit -- ./build/all_tests
- name: Run sparsediff_linalg tests under guard-malloc + leaks
run: >
MallocScribble=1 MallocGuardEdges=1
leaks --atExit -- ./build/sparsediff_linalg/sparsediff_linalg_tests