Skip to content

Build workflow

Build workflow #7

Workflow file for this run

name: Build
on: [pull_request, push]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu
cc: gcc
cxx: g++
- os: ubuntu
cc: clang
cxx: clang++
- os: macos
- os: windows
runs-on: ${{matrix.os}}-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure CC & CXX
if: matrix.cc != '' && matrix.cxx != ''
run: echo "CC=${{matrix.cc}}" >> $GITHUB_ENV && echo "CXX=${{matrix.cxx}}" >> $GITHUB_ENV
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_COMPILE_WARNING_AS_ERROR=ON -DCMAKE_CXX_CLANG_TIDY="clang-tidy"
- name: Build
run: cmake --build ${{github.workspace}}/build --config Release