Skip to content

use if constexpr for always constant test known at compilation time #1

use if constexpr for always constant test known at compilation time

use if constexpr for always constant test known at compilation time #1

Workflow file for this run

name: "Linux+gcc13"
on:
push:
branches: [ master ]
pull_request:
# branches: [ master ]
jobs:
build_libebml:
name: libebml ${{ matrix.shared.name }} with gcc13
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shared: [
{ "name": "Dynamic", "option": "ON"},
{ "name": "Static", "option": "OFF"}
]
env:
CMAKE_OPTIONS: -DDEV_MODE=ON -DBUILD_TESTING=ON
steps:
- uses: lukka/get-cmake@latest
- name: Get pushed code
uses: actions/checkout@v4
- name: Configure ${{ matrix.shared.name }} library
run: cmake -S . -B _build ${{ env.CMAKE_OPTIONS }} -DBUILD_SHARED_LIBS=${{ matrix.shared.option }} -DCMAKE_INSTALL_PREFIX:STRING=${GITHUB_WORKSPACE}/_built
env:
CC: gcc-13
CXX: g++-13
- name: Build
run: cmake --build _build --parallel
- name: Test installation
run: cmake --install _build --prefix ${GITHUB_WORKSPACE}/_built
- name: Run tests
run: ctest --test-dir _build