Skip to content

Commit 56d2616

Browse files
Merge pull request #615 from weslleyspereira/master
Runs CTest with a single job when OpenMP
2 parents d7f91bc + afb5242 commit 56d2616

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/cmake.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,26 @@ jobs:
9696
-D LAPACKE_WITH_TMG:BOOL=ON
9797
-D BUILD_SHARED_LIBS:BOOL=ON
9898
99-
- name: CTest
99+
- name: Build
100100
working-directory: ${{github.workspace}}/build
101101
# Execute tests defined by the CMake configuration.
102102
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
103103
run: |
104104
ctest -D ExperimentalStart
105105
ctest -D ExperimentalConfigure
106106
ctest -D ExperimentalBuild -j2
107+
108+
- name: Test with OpenMP
109+
working-directory: ${{github.workspace}}/build
110+
if: ${{ contains( matrix.fflags, 'openmp' ) }}
111+
run: |
112+
ctest -D ExperimentalTest --schedule-random -j1 --output-on-failure --timeout 100
113+
ctest -D ExperimentalSubmit
114+
115+
- name: Test
116+
working-directory: ${{github.workspace}}/build
117+
if: ${{ !contains( matrix.fflags, 'openmp' ) }}
118+
run: |
107119
ctest -D ExperimentalTest --schedule-random -j2 --output-on-failure --timeout 100
108120
ctest -D ExperimentalSubmit
109121

0 commit comments

Comments
 (0)