Skip to content

[feat, test] allow more formats for std::formatter; add tests #56

[feat, test] allow more formats for std::formatter; add tests

[feat, test] allow more formats for std::formatter; add tests #56

Workflow file for this run

name: test-cxx20
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
build_type: [Release, RelWithDebInfo, MinSizeRel]
os: [windows-latest, ubuntu-latest, macos-latest]
compiler: [[clang, clang++], [gcc, g++]]
include:
- build_type: Release
os: windows-latest
compiler: [cl, cl]
- build_type: RelWithDebInfo
os: windows-latest
compiler: [cl, cl]
- build_type: MinSizeRel
os: windows-latest
compiler: [cl, cl]
steps:
- uses: actions/checkout@v4
- name: set reusable strings
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: configure CMake
run: >
cmake -B ${{ github.workspace }}/build -S ${{ github.workspace }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DCMAKE_C_COMPILER=${{ matrix.compiler[0] }}
-DCMAKE_CXX_COMPILER=${{ matrix.compiler[1] }}
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/install
- name: build
run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.build_type }}
- name: test
working-directory: ${{ steps.strings.outputs.build-output-dir }}
run: ctest --verbose --output-on-failure --build-config ${{ matrix.build_type }} --parallel 8