Skip to content

Add support for std::string_view #35

Add support for std::string_view

Add support for std::string_view #35

Workflow file for this run

name: CMake
on: [push, pull_request]
jobs:
build:
name: "${{matrix.config.name}} C++${{matrix.cxx}}"
runs-on: ${{matrix.config.os}}
strategy:
matrix:
config:
- os: ubuntu-latest
name: Ubuntu Debug
build_type: Debug
- os: ubuntu-latest
name: Ubuntu Release
build_type: Release
- os: windows-latest
name: Windows Debug
build_type: Debug
- os: windows-latest
name: Windows Release
build_type: Release
- os: macos-latest
name: Mac OS Debug
build_type: Debug
- os: macos-latest
name: Mac OS Release
build_type: Release
cxx:
- 11
- 17
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure
run: cmake -S . -B ${{runner.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} -DBUILD_TESTS=True -DBUILD_EXAMPLES=True -DINICPP_CXX_STANDARD=${{matrix.cxx}}
- name: Build
run: cmake --build ${{runner.workspace}}/build --config ${{matrix.config.build_type}}
- name: Test
run: ctest -C ${{matrix.config.build_type}} --test-dir ${{runner.workspace}}/build