File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 steps :
1313 - uses : actions/checkout@v3
1414
15- - name : Setup Fortran
16- uses : awvwgk/setup-fortran@main
17- id : setup-fortran
18- with :
19- compiler : gcc
20- version : 11
21-
2215 - uses : mamba-org/setup-micromamba@v2
2316 with :
2417 environment-name : test-env
@@ -41,33 +34,30 @@ jobs:
4134 c-compiler
4235 cxx-compiler
4336 fortran-compiler
37+ valgrind
4438
45- - name : Install Valgrind
39+ - name : Install glibc debug symbols for valgrind
4640 run : |
47- sudo apt install valgrind
41+ sudo apt-get update
42+ sudo apt-get install -y --no-install-recommends libc6-dbg
4843
4944 - name : configure cmake
5045 shell : bash -el {0}
5146 run : |
52- export CONDA_PREFIX_SAVE=$CONDA_PREFIX
53- unset CONDA_PREFIX
54- cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_PREFIX_PATH=$CONDA_PREFIX_SAVE
55- export CONDA_PREFIX=$CONDA_PREFIX_SAVE
47+ cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_PREFIX_PATH=$CONDA_PREFIX
5648
5749 - name : build fortran
5850 shell : bash -el {0}
5951 run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
6052
6153 - name : test fortran
54+ shell : bash -el {0}
6255 working-directory : ${{github.workspace}}/build
6356 run : |
6457 valgrind --error-exitcode=1 --leak-check=full ./tests/memtest_evo
6558
6659 - name : build python
6760 shell : bash -el {0}
6861 run : |
69- export CMAKE_ARGS="-DCMAKE_PREFIX_PATH=$CONDA_PREFIX -DCMAKE_POSITION_INDEPENDENT_CODE=ON"
70- export CONDA_PREFIX_SAVE=$CONDA_PREFIX
71- unset CONDA_PREFIX
62+ export CMAKE_ARGS="-DCMAKE_PREFIX_PATH=$CONDA_PREFIX"
7263 python -m pip install --no-deps --no-build-isolation . -v
73- export CONDA_PREFIX=$CONDA_PREFIX_SAVE
You can’t perform that action at this time.
0 commit comments