2023-07-29 15:17:39 +02:00
|
|
|
name: win-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:
|
2023-07-29 15:03:25 +02:00
|
|
|
if: >-
|
|
|
|
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
|
|
|
|
! contains(toJSON(github.event.commits.*.message), '[skip github]')
|
|
|
|
|
2023-07-29 00:38:27 +02:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
2023-07-29 15:03:25 +02:00
|
|
|
|
2023-07-29 00:38:27 +02:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2023-07-29 15:17:39 +02:00
|
|
|
config:
|
2023-07-29 15:30:05 +02:00
|
|
|
- os: windows-2019
|
|
|
|
vs: "Visual Studio 16 2019"
|
2023-07-29 15:17:39 +02:00
|
|
|
|
2023-07-29 15:30:05 +02:00
|
|
|
- os: windows-latest
|
|
|
|
vs: "Visual Studio 17 2022"
|
2023-07-29 15:17:39 +02:00
|
|
|
|
2023-07-29 00:38:27 +02:00
|
|
|
build: [Debug, Release]
|
|
|
|
platform: [Win32, x64]
|
|
|
|
|
2023-08-07 01:26:40 +02:00
|
|
|
runs-on: ${{matrix.config.os}}
|
|
|
|
|
2023-08-07 01:21:05 +02:00
|
|
|
name: "${{matrix.config.vs}}: ${{matrix.platform}}: ${{matrix.build}}"
|
2023-07-29 15:03:25 +02:00
|
|
|
|
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 15:30:05 +02:00
|
|
|
run: >-
|
2023-07-29 15:39:51 +02:00
|
|
|
cmake -S test -B build -D CMAKE_BUILD_TYPE=${{matrix.build}}
|
2023-07-29 15:35:29 +02:00
|
|
|
-G "${{matrix.config.vs}}" -A ${{matrix.platform}}
|
2023-07-29 00:38:27 +02:00
|
|
|
|
|
|
|
- name: Build
|
2023-07-29 15:30:05 +02:00
|
|
|
run: cmake --build build -j ${{steps.cores.outputs.count}}
|
2023-07-29 00:38:27 +02:00
|
|
|
|
|
|
|
- name: Run
|
|
|
|
working-directory: build
|
2023-07-29 15:30:05 +02:00
|
|
|
run: >-
|
|
|
|
ctest -C Debug --output-on-failure -j ${{steps.cores.outputs.count}}
|