Skip to content

Implement nextafter and nexttoward #204

Implement nextafter and nexttoward

Implement nextafter and nexttoward #204

Workflow file for this run

name: tests
on:
push:
tags-ignore: v*.*
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
test-linux:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
compiler: [ninja-gcc, ninja-clang, ninja-clang-libcpp]
cxx_version: [17, 20]
target: [Debug, Release]
steps:
- uses: actions/checkout@v4
- name: install dependencies
run: sudo apt install -yqq ninja-build
- name: configure cmake
run: cmake -S . --preset=${{matrix.compiler}} -B build -DCMAKE_CXX_STANDARD=${{matrix.cxx_version}}
- name: build
run: cmake --build build --config=${{matrix.target}}
- name: test
run: cd build && ctest -C ${{matrix.target}} --output-on-failure
test-windows:
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
compiler: [vs22]
cxx_version: [17, 20]
target: [Debug, Release]
steps:
- uses: actions/checkout@v4
- name: configure
run: cmake -S . --preset=${{matrix.compiler}} -B build -DCMAKE_CXX_STANDARD=${{matrix.cxx_version}}
- name: build
run: cmake --build build --config=${{matrix.target}}
- name: test
run: cd build && ctest -C ${{matrix.target}} --output-on-failure
test-macos:
runs-on: macos-14
strategy:
fail-fast: false
matrix:
compiler: [ninja-clang, ninja-gcc]
cxx_version: [17, 20]
target: [Debug, Release]
steps:
- uses: actions/checkout@v4
- name: install homebrew formulae
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: install ninja
run: brew install ninja
- name: update AppleClang to 14.0.3
run: sudo xcode-select -s /Applications/Xcode_14.3.app/Contents/Developer
- name: configure
run: cmake -S . --preset=${{matrix.compiler}} -B build -DCMAKE_CXX_STANDARD=${{matrix.cxx_version}}
- name: build
run: cmake --build build --config=${{matrix.target}}
- name: test
run: cd build && ctest -C ${{matrix.target}} --output-on-failure