Skip to content

workflow #1

workflow #1 #4

Workflow file for this run

name: Building
on:
push:
branches: [ tui ]
env:
BUILD_TYPE: Debug
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- name: Linux GCC
os: ubuntu-latest
compiler: g++
- name: Linux Clang
os: ubuntu-latest
compiler: clang++
- name: MacOS Clang
os: macos-latest
compiler: clang++
- name: Windows GCC
os: windows-latest
compiler: g++
- name: Windows MSVC
os: windows-latest
compiler: cl
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install CMake and Ninja
uses: lukka/get-cmake@latest
with:
cmakeVersion: "~3.27.0" # use most recent 3.27.x version
ninjaVersion: "^1.0" # use most recent 1.x version
- name: CMake Setup
run: cmake -S . -B ${{github.workspace}}/build -G Ninja -D CMAKE_CXX_COMPILER=${{matrix.compiler}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: CMake Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target caravan