feat: add vs2019 ci #18
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: 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 | |
if: github.repository_owner == 'deNBI-cibi' || github.event_name == 'workflow_dispatch' | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: "Visual Studio 16 2019" | |
build_type: Release | |
cpp: 17 | |
steps: | |
- name: Setup MSVC | |
uses: ilammy/msvc-dev-cmd@v1 | |
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 |