ssp/.github/workflows/win-latest-msvc.yaml

48 lines
1.1 KiB
YAML
Raw Normal View History

2023-07-29 14:14:02 +02:00
name: win-latest-msvc-ci
2023-07-29 00:38:27 +02:00
on:
push:
branches:
- master
- feature/**
- improvement/**
- bugfix/**
pull_request:
branches:
- master
- feature/**
- improvement/**
- bugfix/**
jobs:
ci:
defaults:
run:
shell: bash
2023-07-29 14:14:02 +02:00
runs-on: windows-latest
2023-07-29 00:38:27 +02:00
strategy:
fail-fast: false
matrix:
2023-07-29 14:54:25 +02:00
vs: ["Visual Studio 16 2019", "Visual Studio 17 2022"]
2023-07-29 00:38:27 +02:00
build: [Debug, Release]
platform: [Win32, x64]
2023-07-29 14:14:02 +02:00
name: "${{matrix.vs}}:${{matrix.platform}}:${{matrix.build}}"
2023-07-29 00:38:27 +02:00
steps:
- name: checkout
uses: actions/checkout@v2
- name: Install dependencies
run: script/ci_install_deps.sh
- name: Configure
2023-07-29 14:59:49 +02:00
run: cmake -S test -B build -G ${{ matrix.vs }} -A ${{ matrix.platform }} -D CMAKE_BUILD_TYPE=${{ matrix.build }}
2023-07-29 00:38:27 +02:00
- name: Build
run: cmake --build build -j ${{ steps.cores.outputs.count }}
- name: Run
working-directory: build
run: ctest -C Debug --output-on-failure -j ${{ steps.cores.outputs.count }}