Skip to content

Debug Windows ci failure #78

Debug Windows ci failure

Debug Windows ci failure #78

Workflow file for this run

# SPDX-FileCopyrightText: 2023 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
#
# SPDX-License-Identifier: MIT
name: CI
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
- 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
if: ${{ runner.os == 'Windows' }}
- name: Configure project
run: cmake --preset=ci
- name: Build Project
run: cmake --build --preset=ci
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: false
- name: Run tests
run: ctest --preset=ci
- name: Read tests log when it fails
uses: andstor/file-reader-action@v1
if: ${{ failure() }}
with:
path: "./build/Testing/Temporary/LastTest.log"