Skip to content

Feature/initial setup #42

Feature/initial setup

Feature/initial setup #42

Workflow file for this run

name: CMake Build Matrix
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest, ubuntu-latest, macos-latest ]
include:
- os: windows-latest
compiler: msvc
- os: ubuntu-latest
compiler: gcc
- os: macos-latest
compiler: clang
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Install Ninja
run: |
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
sudo apt-get install ninja-build
elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then
brew install ninja
elif [[ "${{ matrix.os }}" == "windows-latest" ]]; then
choco install ninja
fi
- name: Configure CMake
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release -G Ninja
- name: Build
run: |
cmake --build build --config Release