Skip to content

Commit f279cea

Browse files
committed
split gdb and valgrind testers.
1 parent 08a96d6 commit f279cea

File tree

1 file changed

+51
-6
lines changed

1 file changed

+51
-6
lines changed

.github/workflows/test.yml

Lines changed: 51 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -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
707707
run: ctest -VV -C ${{ matrix.build_type }} -E _no_coordinates_gdb
708708

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 valgrind
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
743+
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

Comments
 (0)