Setup CI with Github Actions #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]> | |
# | |
# SPDX-License-Identifier: MIT | |
name: knut tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install ninja-build tool | |
uses: aseprite/get-ninja@main | |
- name: Make sure MSVC is found when Ninja generator is in use | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: Configure project | |
run: cmake --preset=ci | |
- name: Build Project | |
run: cmake --build --preset=ci | |
- name: Run tests | |
run: ctest --preset=ci |