Skip to content

Combine Workflows

Combine Workflows #2

Workflow file for this run

name: Build
on:
push:
branches:
- main
env:
BUILD_TYPE: Release
BUILD_GEN: "Ninja"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ env.QT_VERSION }}
- name: Install Ninja on Linux
run: sudo apt-get install ninja-build
if: matrix.os == 'ubuntu-latest'
- name: Install Ninja on Windows
run: choco install ninja
if: matrix.os == 'windows-latest'
- name: Build
run: cmake -S . -B build -G "${{ env.BUILD_GEN }}" && cmake --build build --config ${{ env.BUILD_TYPE }}