Skip to content

Update README.md

Update README.md #48

Workflow file for this run

name: examples
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-24.04, windows-2022, macos-15]
build_type: [Debug, Release]
cxx_compiler: [g++-14, clang++, cl]
exclude:
- os: windows-2022
cxx_compiler: g++-14
- os: windows-2022
cxx_compiler: clang++
- os: ubuntu-24.04
cxx_compiler: cl
- os: macos-15
cxx_compiler: cl
- os: macos-15
cxx_compiler: g++-14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup build directory
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build.examples" >> "$GITHUB_OUTPUT"
- name: Configure CMake
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_CXX_COMPILER=${{ matrix.cxx_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-S ${{ github.workspace }}/examples
- name: Build examples
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
- name: Run examples
run: ctest --output-on-failure --build-config ${{ matrix.build_type }} --test-dir ${{ steps.strings.outputs.build-output-dir }}