1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
name: Basic CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-22.04, ubuntu-latest ]
compiler: [ g++, clang++ ]
BUILD_TYPE: [ Debug, Release ]
steps:
- uses: actions/checkout@v4
- name: dependencies
run: sudo apt install g++ clang libeigen3-dev
- name: configure
env:
CXX: ${{ 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
|