Improvements detection of features, part 13. Don't explicitly enable constexpr tests for old compilers, that not fully support consteval because it's not fully support basic C++20 constexpr. Added 2 additional modern configuration.

This commit is contained in:
HedgehogInTheCPP 2026-08-22 00:02:34 +03:00
parent e6d98ff43d
commit 7a66d0b6f5
6 changed files with 45 additions and 4 deletions

25
.github/workflows/ubuntu-clang.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Ubuntu latest CI (clang 22)
on: [push, pull_request]
jobs:
ubuntu-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Install clang++-22
run: sudo apt-get install -y clang++-22
- name: Use cmake
run: |
mkdir build &&
cd build &&
CXX=clang++-22 cmake -DFASTFLOAT_TEST=ON .. &&
cmake --build . &&
ctest --output-on-failure
- name: Use cmake CXX23
run: |
mkdir build23 &&
cd build23 &&
CXX=clang++-22 cmake -DFASTFLOAT_CXX_STANDARD=23 -DFASTFLOAT_TEST=ON .. &&
cmake --build . &&
ctest --output-on-failure

16
.github/workflows/ubuntu.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Ubuntu latest CI
on: [push, pull_request]
jobs:
ubuntu-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Use cmake
run: |
mkdir build &&
cd build &&
cmake -DFASTFLOAT_TEST=ON .. &&
cmake --build . &&
ctest --output-on-failure

View File

@ -20,6 +20,6 @@ jobs:
run: |
mkdir build20 &&
cd build20 &&
CXX=clang++-15 cmake -DFASTFLOAT_CONSTEXPR_TESTS=ON -DFASTFLOAT_CXX_STANDARD=20 -DFASTFLOAT_TEST=ON .. &&
CXX=clang++-15 cmake -DFASTFLOAT_CXX_STANDARD=20 -DFASTFLOAT_TEST=ON .. &&
cmake --build . &&
ctest --output-on-failure

View File

@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v7
- name: configure
run: |
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DFASTFLOAT_CXX_STANDARD=14 -DFASTFLOAT_BENCHMARKS=OFF -DFASTFLOAT_TEST=ON -DCMAKE_INSTALL_PREFIX:PATH=destination
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DFASTFLOAT_CXX_STANDARD=14 -DFASTFLOAT_BENCHMARKS=ON -DFASTFLOAT_TEST=ON -DCMAKE_INSTALL_PREFIX:PATH=destination
- name: build
run: |
cmake --build build --verbose --config ${{matrix.cfg}} --parallel

View File

@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v7
- name: Configure
run: |
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DFASTFLOAT_BENCHMARKS=OFF -T ClangCL -DFASTFLOAT_TEST=ON
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DFASTFLOAT_BENCHMARKS=ON -T ClangCL -DFASTFLOAT_TEST=ON
- name: Build
run: cmake --build build --config ${{matrix.cfg}} --parallel --verbose
- name: Run basic tests

View File

@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v7
- name: Configure
run: |
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DFASTFLOAT_BENCHMARKS=OFF -T ClangCL -DFASTFLOAT_TEST=ON
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DFASTFLOAT_BENCHMARKS=ON -T ClangCL -DFASTFLOAT_TEST=ON
- name: Build
run: cmake --build build --config ${{matrix.cfg}} --parallel --verbose
- name: Run basic tests