mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-02-07 02:09:52 +08:00
re #34: reproduce in the CI
This commit is contained in:
parent
8a0a0c4fc1
commit
3eb7bce1e3
15
.github/workflows/msys2.yml
vendored
15
.github/workflows/msys2.yml
vendored
@ -35,10 +35,11 @@ jobs:
|
|||||||
update: true
|
update: true
|
||||||
msystem: ${{ matrix.msystem }}
|
msystem: ${{ matrix.msystem }}
|
||||||
install: ${{ matrix.install }}
|
install: ${{ matrix.install }}
|
||||||
- name: Build and Test
|
- name: Prepare build dir
|
||||||
run: |
|
run: mkdir build
|
||||||
mkdir build
|
- name: Configure
|
||||||
cd build
|
run: cd build && cmake -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DFASTFLOAT_TEST=ON ..
|
||||||
cmake -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DFASTFLOAT_TEST=ON ..
|
- name: Build
|
||||||
cmake --build . --verbose
|
run: cmake --build build
|
||||||
ctest --output-on-failure -R basictest
|
- name: Run basic tests
|
||||||
|
run: cd build && ctest --output-on-failure -R basictest
|
||||||
|
|||||||
26
.github/workflows/ubuntu18.yml
vendored
26
.github/workflows/ubuntu18.yml
vendored
@ -1,20 +1,32 @@
|
|||||||
name: Ubuntu 18.04 CI (GCC 7)
|
name: Ubuntu 18.04 CI (GCC 7, 6, 5)
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ubuntu-build:
|
ubuntu-build:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- {cxx: -DCMAKE_CXX_COMPILER=g++-5}
|
||||||
|
- {cxx: -DCMAKE_CXX_COMPILER=g++-6}
|
||||||
|
- {cxx: } # default compiler 7
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Setup cmake
|
- name: Setup cmake
|
||||||
uses: jwlawson/actions-setup-cmake@v1.0
|
uses: jwlawson/actions-setup-cmake@v1.0
|
||||||
with:
|
with:
|
||||||
cmake-version: '3.9.x'
|
cmake-version: '3.9.x'
|
||||||
- name: Use cmake
|
- name: Install older compilers
|
||||||
run: |
|
run: |
|
||||||
mkdir build &&
|
sudo -E apt-get update
|
||||||
cd build &&
|
sudo -E apt-get install -y --force-yes g++-5 g++-6
|
||||||
cmake -DFASTFLOAT_TEST=ON .. &&
|
- name: Prepare build dir
|
||||||
cmake --build . &&
|
run: mkdir build
|
||||||
ctest --output-on-failure -R basictest
|
- name: Configure
|
||||||
|
run: cd build && cmake ${{matrix.cxx}} -DFASTFLOAT_TEST=ON ..
|
||||||
|
- name: Build
|
||||||
|
run: cmake --build build
|
||||||
|
- name: Run basic tests
|
||||||
|
run: cd build && ctest --output-on-failure -R basictest
|
||||||
|
|||||||
25
.github/workflows/ubuntu20.yml
vendored
25
.github/workflows/ubuntu20.yml
vendored
@ -1,20 +1,31 @@
|
|||||||
name: Ubuntu 20.04 CI (GCC 9)
|
name: Ubuntu 20.04 CI (GCC 9, 8)
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ubuntu-build:
|
ubuntu-build:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- {cxx: -DCMAKE_CXX_COMPILER=g++-8}
|
||||||
|
- {cxx: } # default compiler 9
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Setup cmake
|
- name: Setup cmake
|
||||||
uses: jwlawson/actions-setup-cmake@v1.0
|
uses: jwlawson/actions-setup-cmake@v1.0
|
||||||
with:
|
with:
|
||||||
cmake-version: '3.9.x'
|
cmake-version: '3.9.x'
|
||||||
- name: Use cmake
|
- name: install older compilers
|
||||||
run: |
|
run: |
|
||||||
mkdir build &&
|
sudo -E apt-get update
|
||||||
cd build &&
|
sudo -E apt-get install -y --force-yes g++-8 g++-7
|
||||||
cmake -DFASTFLOAT_TEST=ON .. &&
|
- name: Prepare build dir
|
||||||
cmake --build . &&
|
run: mkdir build
|
||||||
ctest --output-on-failure -R basictest
|
- name: Configure
|
||||||
|
run: cd build && cmake ${{matrix.cxx}} -DFASTFLOAT_TEST=ON ..
|
||||||
|
- name: Build
|
||||||
|
run: cmake --build build
|
||||||
|
- name: Run basic tests
|
||||||
|
run: cd build && ctest --output-on-failure -R basictest
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user