mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-02-08 18:56:45 +08:00
Adding a fast-math test.
This commit is contained in:
parent
003a983188
commit
eec504ae03
18
.github/workflows/ubuntu20-fastmath.yml
vendored
Normal file
18
.github/workflows/ubuntu20-fastmath.yml
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
name: Ubuntu 20.04 CI (GCC 9)
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ubuntu-build:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Use cmake
|
||||||
|
run: |
|
||||||
|
mkdir build &&
|
||||||
|
cd build &&
|
||||||
|
cmake -DCMAKE_CXX_FLAGS="-ffast-math" -DFASTFLOAT_TEST=ON .. &&
|
||||||
|
cmake --build . &&
|
||||||
|
ctest --output-on-failure
|
||||||
@ -9,7 +9,7 @@ option(SYSTEM_DOCTEST "Use system copy of doctest" OFF)
|
|||||||
if (NOT SYSTEM_DOCTEST)
|
if (NOT SYSTEM_DOCTEST)
|
||||||
FetchContent_Declare(doctest
|
FetchContent_Declare(doctest
|
||||||
GIT_REPOSITORY https://github.com/onqtam/doctest.git
|
GIT_REPOSITORY https://github.com/onqtam/doctest.git
|
||||||
GIT_TAG 2.4.6)
|
GIT_TAG v2.4.9)
|
||||||
endif()
|
endif()
|
||||||
FetchContent_Declare(supplemental_test_files
|
FetchContent_Declare(supplemental_test_files
|
||||||
GIT_REPOSITORY https://github.com/fastfloat/supplemental_test_files.git
|
GIT_REPOSITORY https://github.com/fastfloat/supplemental_test_files.git
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user