cmake: remove various warning suppressions #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |