Skip to content

Add a DEV_MODE option to enable more warnings #107

Add a DEV_MODE option to enable more warnings

Add a DEV_MODE option to enable more warnings #107

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@v3
- 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