benchmark deserialize #33
This file contains hidden or 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: Ubuntu | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| pull_request: | |
| branches: | |
| - '**' | |
| jobs: | |
| build-test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-22.04 | |
| compiler: gcc | |
| c_compiler: gcc | |
| cxx_compiler: g++ | |
| name: Ubuntu-22.04-GCC | |
| packages: gcc g++ | |
| - os: ubuntu-22.04 | |
| compiler: clang | |
| c_compiler: clang | |
| cxx_compiler: clang++ | |
| name: Ubuntu-22.04-Clang | |
| packages: clang | |
| - os: ubuntu-24.04 | |
| compiler: gcc | |
| c_compiler: gcc | |
| cxx_compiler: g++ | |
| name: Ubuntu-24.04-GCC | |
| packages: gcc g++ | |
| - os: ubuntu-24.04 | |
| compiler: clang | |
| c_compiler: clang | |
| cxx_compiler: clang++ | |
| name: Ubuntu-24.04-Clang | |
| packages: clang | |
| name: ${{ matrix.name }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt install -y ninja-build cmake ${{ matrix.packages }} | |
| - name: Build tests | |
| run: | | |
| cmake tests -B build -G Ninja \ | |
| -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | |
| -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \ | |
| -DCMAKE_CXX_COMPILER=${{ matrix.cxx_compiler }} | |
| cmake --build build --parallel | |
| - name: Run Unit Tests | |
| run: ./build/tests | |
| - name: Build examples | |
| run: | | |
| cmake examples -B build2 -G Ninja \ | |
| -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | |
| -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \ | |
| -DCMAKE_CXX_COMPILER=${{ matrix.cxx_compiler }} | |
| cmake --build build2 --parallel | |
| - name: Build benchmarks | |
| run: | | |
| cmake bench -B build3 -G Ninja \ | |
| -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | |
| -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \ | |
| -DCMAKE_CXX_COMPILER=${{ matrix.cxx_compiler }} | |
| cmake --build build3 --parallel |