Skip to content

Commit 1bfc49c

Browse files
committed
CI
1 parent c260f9e commit 1bfc49c

1 file changed

Lines changed: 7 additions & 17 deletions

File tree

.github/workflows/test.yaml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ jobs:
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

0 commit comments

Comments
 (0)