Merge pull request #110 from microavia/v1_improve_concepts #102
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: C++ CI | |
on: | |
push: | |
branches: [ "master", "v1" ] | |
pull_request: | |
branches: [ "master", "v1" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: libgtest-dev cmake ninja-build gcc g++ | |
version: 1.0 | |
- name: Build & run tests | |
run: | | |
mkdir -p build | |
cmake -Bbuild -S. -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=Debug | |
cmake --build build | |
ctest --test-dir build/tests/ --output-on-failure |