Skip to content

feat: add vs2019 ci

feat: add vs2019 ci #5

Workflow file for this run

# SPDX-FileCopyrightText: 2006-2023, Knut Reinert & Freie Universität Berlin
# SPDX-FileCopyrightText: 2016-2023, Knut Reinert & MPI für molekulare Genetik
# SPDX-License-Identifier: CC0-1.0
name: Windows
on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch:
concurrency:
group: windows-vs2019-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name != 'push' }}
env:
TZ: Europe/Berlin
jobs:
build:
name: ${{ matrix.name }}
runs-on: windows-2019
timeout-minutes: 180
strategy:
fail-fast: false
matrix:
include:
- name: "Visual Studio 16 2019"
build_type: Release
cpp: 20
steps:
- name: Setup MSVC
uses: ilammy/[email protected]
with:
vsversion: 2019
- name: Checkout TDL
uses: actions/checkout@v4
with:
path: tdl
fetch-depth: 2
- name: Configure tests
run: |
New-Item -Name "tdl-build" -ItemType "directory" -Force
cd tdl-build
cmake ../tdl -G "${{ matrix.name }}" `
-DCMAKE_CXX_FLAGS="/EHsc /W4" `
-DCMAKE_CXX_STANDARD=${{ matrix.cpp }}
- name: Build tests
run: |
cd tdl-build
cmake --build . --config "${{ matrix.build_type }}" --parallel 2 ` -- /p:TrackFileAccess=false
- name: Run tests
run: |
cd tdl-build
ctest . -j2 -C "${{ matrix.build_type }}" --output-on-failure --timeout 240