Skip to content

Reworked the examples. #23

Reworked the examples.

Reworked the examples. #23

Workflow file for this run

name: Build Linux + Windows
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
# --------------------------------
# Linux — Ninja (Debug)
# --------------------------------
- name: Linux (Ninja, Debug)
os: ubuntu-latest
configure-preset: linux-ninja-debug
build-preset: linux-ninja-debug
# --------------------------------
# Windows — Ninja + GCC (Debug)
# --------------------------------
- name: Windows (Ninja + GCC, Debug)
os: windows-latest
configure-preset: windows-ninja-debug
build-preset: windows-ninja-debug
# --------------------------------
# Windows — MSVC (Debug)
# --------------------------------
- name: Windows (MSVC, Debug)
os: windows-latest
configure-preset: windows-msvc
build-preset: windows-msvc-debug
steps:
- name: Checkout
uses: actions/checkout@v4
# Install CMake + Ninja
- name: Setup CMake & Ninja
uses: lukka/get-cmake@latest
# Configure
- name: Configure
run: cmake --preset ${{ matrix.configure-preset }}
# Build
- name: Build
run: cmake --build --preset ${{ matrix.build-preset }}