Add logging with spdlog #12
Workflow file for this run
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: Build and test | |
on: | |
merge_group: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
build-and-test: | |
strategy: | |
matrix: | |
buildtype: [debug, release] | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update apt repositories for ccache | |
run: sudo apt update | |
- name: Set up ccache | |
uses: hendrikmuhs/ccache-action@v1.2 | |
with: | |
key: ccache-linux-${{ matrix.buildtype }} | |
- name: Setup compiler and build tools | |
run: sudo apt install --no-install-recommends --yes g++-12 meson ninja-build | |
- name: Configure | |
run: | | |
CXX="ccache g++-12" meson setup \ | |
--buildtype ${{ matrix.buildtype }} \ | |
--warnlevel 3 \ | |
--werror \ | |
build . | |
- name: Build | |
run: ninja -C build | |
- name: Test | |
run: ./build/unit |