Skip to content

clean build

clean build #10

name: Linux CI build
on:
push:
branches: [ "master", "cleanup" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install (latest) eigen
run: sudo apt install libeigen3-dev
- name: "prepare build (production/standard), gcc"
run: cmake -S . -B build -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
- name: "build"
run: cmake --build build --target all --config Release -- -j4
- name: "Test"
run: ctest --test-dir build
- name: "prepare build (debug), gcc"
run: cmake -S . -B build -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug
- name: "build"
run: cmake --build build --target all --config Debug -- -j4
- name: "prepare build (production/standard), clang++"
run: cmake -S . -B build -G "Unix Makefiles" -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release
- name: "build"
run: cmake --build build --target all --config Release -- -j4
- name: "Test"
run: ctest --test-dir build
- name: "prepare build (debug), clang++"
run: cmake -S . -B build -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++
- name: "build"
run: cmake --build build --target all --config Debug -- -j4
- name: "prepare build (production/standard), gcc, c++=20"
run: cmake -S . -B build -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=20
- name: "build"
run: cmake --build build --target all --config Release -- -j4