File tree Expand file tree Collapse file tree 3 files changed +45
-21
lines changed Expand file tree Collapse file tree 3 files changed +45
-21
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,11 @@ jobs:
35
35
update : true
36
36
msystem : ${{ matrix.msystem }}
37
37
install : ${{ matrix.install }}
38
- - name : Build and Test
39
- run : |
40
- mkdir build
41
- cd build
42
- cmake -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DFASTFLOAT_TEST=ON ..
43
- cmake --build . --verbose
44
- ctest --output-on-failure -R basictest
38
+ - name : Prepare build dir
39
+ run : mkdir build
40
+ - name : Configure
41
+ run : cd build && cmake -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DFASTFLOAT_TEST=ON ..
42
+ - name : Build
43
+ run : cmake --build build
44
+ - name : Run basic tests
45
+ run : cd build && ctest --output-on-failure -R basictest
Original file line number Diff line number Diff line change 1
- name : Ubuntu 18.04 CI (GCC 7)
1
+ name : Ubuntu 18.04 CI (GCC 7, 6, 5 )
2
2
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
6
ubuntu-build :
7
7
runs-on : ubuntu-18.04
8
+ strategy :
9
+ fail-fast : false
10
+ matrix :
11
+ include :
12
+ - {cxx: -DCMAKE_CXX_COMPILER=g++-5}
13
+ - {cxx: -DCMAKE_CXX_COMPILER=g++-6}
14
+ - {cxx: } # default compiler 7
8
15
steps :
9
16
- uses : actions/checkout@v2
10
17
- name : Setup cmake
11
18
12
19
with :
13
20
cmake-version : ' 3.9.x'
14
- - name : Use cmake
21
+ - name : Install older compilers
15
22
run : |
16
- mkdir build &&
17
- cd build &&
18
- cmake -DFASTFLOAT_TEST=ON .. &&
19
- cmake --build . &&
20
- ctest --output-on-failure -R basictest
23
+ sudo -E apt-get update
24
+ sudo -E apt-get install -y --force-yes g++-5 g++-6
25
+ - name : Prepare build dir
26
+ run : mkdir build
27
+ - name : Configure
28
+ run : cd build && cmake ${{matrix.cxx}} -DFASTFLOAT_TEST=ON ..
29
+ - name : Build
30
+ run : cmake --build build
31
+ - name : Run basic tests
32
+ run : cd build && ctest --output-on-failure -R basictest
Original file line number Diff line number Diff line change 1
- name : Ubuntu 20.04 CI (GCC 9)
1
+ name : Ubuntu 20.04 CI (GCC 9, 8 )
2
2
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
6
ubuntu-build :
7
7
runs-on : ubuntu-20.04
8
+ strategy :
9
+ fail-fast : false
10
+ matrix :
11
+ include :
12
+ - {cxx: -DCMAKE_CXX_COMPILER=g++-8}
13
+ - {cxx: } # default compiler 9
8
14
steps :
9
15
- uses : actions/checkout@v2
10
16
- name : Setup cmake
11
17
12
18
with :
13
19
cmake-version : ' 3.9.x'
14
- - name : Use cmake
20
+ - name : install older compilers
15
21
run : |
16
- mkdir build &&
17
- cd build &&
18
- cmake -DFASTFLOAT_TEST=ON .. &&
19
- cmake --build . &&
20
- ctest --output-on-failure -R basictest
22
+ sudo -E apt-get update
23
+ sudo -E apt-get install -y --force-yes g++-8 g++-7
24
+ - name : Prepare build dir
25
+ run : mkdir build
26
+ - name : Configure
27
+ run : cd build && cmake ${{matrix.cxx}} -DFASTFLOAT_TEST=ON ..
28
+ - name : Build
29
+ run : cmake --build build
30
+ - name : Run basic tests
31
+ run : cd build && ctest --output-on-failure -R basictest
You can’t perform that action at this time.
0 commit comments