Skip to content

Commit db539b2

Browse files
authored
Merge pull request #35 from biojppm/fix/gcc6
re #34: reproduce in CI
2 parents 8a0a0c4 + 3eb7bce commit db539b2

File tree

3 files changed

+45
-21
lines changed

3 files changed

+45
-21
lines changed

.github/workflows/msys2.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ jobs:
3535
update: true
3636
msystem: ${{ matrix.msystem }}
3737
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

.github/workflows/ubuntu18.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,32 @@
1-
name: Ubuntu 18.04 CI (GCC 7)
1+
name: Ubuntu 18.04 CI (GCC 7, 6, 5)
22

33
on: [push, pull_request]
44

55
jobs:
66
ubuntu-build:
77
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
815
steps:
916
- uses: actions/checkout@v2
1017
- name: Setup cmake
1118
uses: jwlawson/[email protected]
1219
with:
1320
cmake-version: '3.9.x'
14-
- name: Use cmake
21+
- name: Install older compilers
1522
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

.github/workflows/ubuntu20.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,31 @@
1-
name: Ubuntu 20.04 CI (GCC 9)
1+
name: Ubuntu 20.04 CI (GCC 9, 8)
22

33
on: [push, pull_request]
44

55
jobs:
66
ubuntu-build:
77
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
814
steps:
915
- uses: actions/checkout@v2
1016
- name: Setup cmake
1117
uses: jwlawson/[email protected]
1218
with:
1319
cmake-version: '3.9.x'
14-
- name: Use cmake
20+
- name: install older compilers
1521
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

0 commit comments

Comments
 (0)