File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 7
7
CMAKE_BUILD_PARALLEL_LEVEL : " 2" # 2 cores on each GHA VM, enable parallel builds
8
8
CTEST_OUTPUT_ON_FAILURE : " ON" # This way we don't need a flag to ctest
9
9
CTEST_PARALLEL_LEVEL : " 2"
10
+ CTEST_TIME_TIMEOUT : " 5" # some failures hang forever
10
11
HOMEBREW_NO_ANALYTICS : " ON" # Make Homebrew installation a little quicker
11
12
HOMEBREW_NO_AUTO_UPDATE : " ON"
12
13
HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK : " ON"
@@ -55,10 +56,15 @@ jobs:
55
56
run : cmake -Wdev -DCMAKE_BUILD_TYPE=Release -S . -B build
56
57
57
58
- name : Build and compile
58
- run : cmake --build build || cmake --build build --verbose --parallel 1
59
+ run : cmake --build build
60
+
61
+ - name : catch build fail
62
+ run : cmake --build build --verbose --parallel 1
63
+ if : failure()
59
64
60
65
- name : test
61
- run : cmake --build build --target test
66
+ run : ctest --parallel --output-on-failure
67
+ working-directory : build
62
68
63
69
- name : Test in-tree builds
64
70
if : contains( matrix.gcc_v, '9') # Only test one compiler on each platform
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ on: [push, pull_request]
4
4
5
5
env :
6
6
CI : " ON"
7
+ CTEST_TIME_TIMEOUT : " 5" # some failures hang forever
7
8
8
9
jobs :
9
10
Build :
24
25
- name : CMake build
25
26
run : cmake --build build --parallel
26
27
27
- - run : cmake --build build --verbose --parallel 1
28
+ - name : catch build fail
29
+ run : cmake --build build --verbose --parallel 1
28
30
if : failure()
29
31
30
32
- name : CTest
You can’t perform that action at this time.
0 commit comments