mem test #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Valgrind Memory Check | |
on: | |
push: | |
pull_request: | |
jobs: | |
valgrind-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Run CAMB with Valgrind in Docker | |
run: | | |
docker run --rm -v "$(pwd):/workspace" -w /workspace cmbant/docker-gcc-build:gcc15 bash -c " | |
echo 'Building CAMB...' && | |
cd fortran && make clean && make > /dev/null 2>&1 && | |
echo 'Running CAMB with valgrind...' && | |
valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all ./camb | |
" | |
- name: Upload Valgrind Output on Failure | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: valgrind-output-${{ github.sha }} | |
path: | | |
fortran/ | |
!fortran/*.o | |
!fortran/*.mod | |
if-no-files-found: warn |