Skip to content

Merge pull request #169 from topazus/fix-cmake #18

Merge pull request #169 from topazus/fix-cmake

Merge pull request #169 from topazus/fix-cmake #18

Workflow file for this run

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