Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 53 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ jobs:
run: ctest -VV -C ${{ matrix.build_type }}


linux-gdb-valgrind:
linux-valgrind:
needs: [test_indentation]
strategy:
fail-fast: false
Expand All @@ -666,7 +666,7 @@ jobs:
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt update;
sudo apt install gfortran swig python3-setuptools gdb valgrind
sudo apt install gfortran swig python3-setuptools valgrind
elif [ "$RUNNER_OS" == "macOS" ]; then
sudo brew install open-mpi || true
else
Expand All @@ -688,7 +688,7 @@ jobs:
shell: bash
working-directory: ${{github.workspace}}/build
run: |
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_CXX_FLAGS=-Werror -DWB_RUN_TESTS_WITH_GDB=ON -DWB_RUN_TESTS_WITH_VALGRIND=OFF;
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_CXX_FLAGS=-Werror -DWB_RUN_TESTS_WITH_GDB=OFF -DWB_RUN_TESTS_WITH_VALGRIND=ON;
cat ${{github.workspace}}/build/CMakeFiles/CMakeError.log ||:;
- name: Build gwb
Expand All @@ -701,20 +701,65 @@ jobs:
shell: bash
run: sudo cmake --install . --config ${{ matrix.build_type }}

- name: Test gwb normal and gdb
- name: Test gwb normal and valgrind
working-directory: ${{github.workspace}}/build
shell: bash
run: ctest -VV -C ${{ matrix.build_type }} -E _no_coordinates_gdb
run: ctest -VV -C ${{ matrix.build_type }} -E _no_coordinates_valgrind

linux-gdb:
needs: [test_indentation]
strategy:
fail-fast: false
matrix:
os: ['ubuntu-22.04']
build_type: ['Debug']

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Install optional dependencies
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt update;
sudo apt install gfortran swig python3-setuptools gdb
elif [ "$RUNNER_OS" == "macOS" ]; then
sudo brew install open-mpi || true
else
echo "$RUNNER_OS not supported"
exit 1
fi
shell: bash

- name: CMake version
run: cmake --version

- name: GCC version
run: gcc --version

- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build

- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/build
run: |
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_CXX_FLAGS=-Werror -DWB_RUN_TESTS_WITH_GDB=OFF -DWB_RUN_TESTS_WITH_VALGRIND=ON;
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_CXX_FLAGS=-Werror -DWB_RUN_TESTS_WITH_GDB=ON -DWB_RUN_TESTS_WITH_VALGRIND=OFF;
cat ${{github.workspace}}/build/CMakeFiles/CMakeError.log ||:;
- name: Build gwb
working-directory: ${{github.workspace}}/build
shell: bash
run: cmake --build . --config ${{ matrix.build_type }}

- name: Install gwb Linux and macOS
working-directory: ${{github.workspace}}/build
shell: bash
run: sudo cmake --install . --config ${{ matrix.build_type }}

- name: Test gwb valgrind
- name: Test gwb normal and gdb
working-directory: ${{github.workspace}}/build
shell: bash
run: ctest -VV -C ${{ matrix.build_type }} -R _valgrind -E _no_coordinates_valgrind
run: ctest -VV -C ${{ matrix.build_type }} -E _no_coordinates_gdb

Loading