Merge pull request #166 from timokoch/patch-1 #17
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: Basic CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-20.04, ubuntu-22.04 ] | |
compiler: [ gcc, clang ] | |
BUILD_TYPE: [ Debug, Release ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: dependencies | |
run: sudo apt install libeigen3-dev | |
- name: configure | |
env: | |
CC: ${{ matrix.compiler }} | |
run: cmake -H. -Bbuild -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} | |
- name: make | |
run: cmake --build build -- -j4 | |
- name: test | |
run: cd build && ctest |