File tree 3 files changed +8
-12
lines changed
3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 3
3
on : [push, pull_request]
4
4
5
5
env :
6
- CI : " ON" # We can detect this in the build system and other vendors implement it
7
6
CMAKE_BUILD_PARALLEL_LEVEL : " 2" # 2 cores on each GHA VM, enable parallel builds
8
7
CTEST_OUTPUT_ON_FAILURE : " ON" # This way we don't need a flag to ctest
9
8
CTEST_PARALLEL_LEVEL : " 2"
28
27
29
28
steps :
30
29
- name : Checkout code
31
- uses : actions/checkout@v1
30
+ uses : actions/checkout@v2
32
31
33
32
- name : Set up Python 3.x
34
33
uses : actions/setup-python@v1 # Use pip to install latest CMake, & FORD/Jin2For, etc.
@@ -67,15 +66,14 @@ jobs:
67
66
-S . -B build
68
67
69
68
- name : Build and compile
70
- run : cmake --build build
69
+ run : cmake --build build --parallel
71
70
72
71
- name : catch build fail
73
72
run : cmake --build build --verbose --parallel 1
74
73
if : failure()
75
74
76
75
- name : test
77
- run : ctest --parallel --output-on-failure
78
- working-directory : build
76
+ run : ctest --test-dir build --parallel --output-on-failure
79
77
80
78
- name : Install project
81
79
run : cmake --install build
@@ -110,7 +108,7 @@ jobs:
110
108
111
109
steps :
112
110
- name : Checkout code
113
- uses : actions/checkout@v1
111
+ uses : actions/checkout@v2
114
112
115
113
- name : Set up Python 3.x
116
114
uses : actions/setup-python@v1
Original file line number Diff line number Diff line change 6
6
runs-on : ubuntu-latest
7
7
steps :
8
8
- name : Check out code.
9
- uses : actions/checkout@v1
9
+ uses : actions/checkout@v2
10
10
- name : misspell
11
11
uses : reviewdog/action-misspell@v1
12
12
with :
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ name: CI_windows
3
3
on : [push, pull_request]
4
4
5
5
env :
6
- CI : " ON"
7
6
CTEST_TIME_TIMEOUT : " 5" # some failures hang forever
7
+ CMAKE_GENERATOR : Ninja
8
8
9
9
jobs :
10
10
msys2-build :
58
58
run : pip install fypp
59
59
60
60
- run : >-
61
- cmake -G Ninja
62
- -DCMAKE_SH="CMAKE_SH-NOTFOUND"
61
+ cmake
63
62
-Wdev
64
63
-B build
65
64
-DCMAKE_BUILD_TYPE=Debug
79
78
if : failure()
80
79
81
80
- name : CTest
82
- run : ctest --output-on-failure --parallel -V -LE quadruple_precision
83
- working-directory : build
81
+ run : ctest --test-dir build --output-on-failure --parallel -V -LE quadruple_precision
84
82
85
83
- uses : actions/upload-artifact@v1
86
84
if : failure()
You can’t perform that action at this time.
0 commit comments