@@ -649,7 +649,7 @@ jobs:
649649 run : ctest -VV -C ${{ matrix.build_type }}
650650
651651
652- linux-gdb- valgrind :
652+ linux-valgrind :
653653 needs : [test_indentation]
654654 strategy :
655655 fail-fast : false
@@ -666,7 +666,7 @@ jobs:
666666 run : |
667667 if [ "$RUNNER_OS" == "Linux" ]; then
668668 sudo apt update;
669- sudo apt install gfortran swig python3-setuptools gdb valgrind
669+ sudo apt install gfortran swig python3-setuptools valgrind
670670 elif [ "$RUNNER_OS" == "macOS" ]; then
671671 sudo brew install open-mpi || true
672672 else
@@ -688,7 +688,7 @@ jobs:
688688 shell : bash
689689 working-directory : ${{github.workspace}}/build
690690 run : |
691- 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 ;
691+ 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 ;
692692 cat ${{github.workspace}}/build/CMakeFiles/CMakeError.log ||:;
693693
694694 - name : Build gwb
@@ -701,20 +701,65 @@ jobs:
701701 shell : bash
702702 run : sudo cmake --install . --config ${{ matrix.build_type }}
703703
704- - name : Test gwb normal and gdb
704+ - name : Test gwb normal and valgrind
705705 working-directory : ${{github.workspace}}/build
706706 shell : bash
707- run : ctest -VV -C ${{ matrix.build_type }} -E _no_coordinates_gdb
707+ run : ctest -VV -C ${{ matrix.build_type }} -E _no_coordinates_valgrind
708+
709+ linux-gdb :
710+ needs : [test_indentation]
711+ strategy :
712+ fail-fast : false
713+ matrix :
714+ os : ['ubuntu-22.04']
715+ build_type : ['Debug']
716+
717+ runs-on : ${{ matrix.os }}
718+
719+ steps :
720+ - uses : actions/checkout@v4
721+
722+ - name : Install optional dependencies
723+ run : |
724+ if [ "$RUNNER_OS" == "Linux" ]; then
725+ sudo apt update;
726+ sudo apt install gfortran swig python3-setuptools gdb
727+ elif [ "$RUNNER_OS" == "macOS" ]; then
728+ sudo brew install open-mpi || true
729+ else
730+ echo "$RUNNER_OS not supported"
731+ exit 1
732+ fi
733+ shell : bash
734+
735+ - name : CMake version
736+ run : cmake --version
737+
738+ - name : GCC version
739+ run : gcc --version
740+
741+ - name : Create Build Environment
742+ run : cmake -E make_directory ${{github.workspace}}/build
708743
709744 - name : Configure CMake
710745 shell : bash
711746 working-directory : ${{github.workspace}}/build
712747 run : |
713- 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 ;
748+ 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 ;
714749 cat ${{github.workspace}}/build/CMakeFiles/CMakeError.log ||:;
715750
751+ - name : Build gwb
752+ working-directory : ${{github.workspace}}/build
753+ shell : bash
754+ run : cmake --build . --config ${{ matrix.build_type }}
755+
756+ - name : Install gwb Linux and macOS
757+ working-directory : ${{github.workspace}}/build
758+ shell : bash
759+ run : sudo cmake --install . --config ${{ matrix.build_type }}
716760
717- - name : Test gwb valgrind
761+ - name : Test gwb normal and gdb
718762 working-directory : ${{github.workspace}}/build
719763 shell : bash
720- run : ctest -VV -C ${{ matrix.build_type }} -R _valgrind -E _no_coordinates_valgrind
764+ run : ctest -VV -C ${{ matrix.build_type }} -E _no_coordinates_gdb
765+
0 commit comments