Skip to content

Commit

Permalink
feat: add vs2019 ci
Browse files Browse the repository at this point in the history
  • Loading branch information
SGSSGene committed Oct 19, 2023
1 parent a52e973 commit 8c4e5c3
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
include:
- name: "Visual Studio 17 2022"
build_type: Release
cpp: 23
cpp: 20

steps:
- name: Setup MSVC
Expand Down
63 changes: 63 additions & 0 deletions .github/workflows/ci_win_2019.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# 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:
toolset: 14.24
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

0 comments on commit 8c4e5c3

Please sign in to comment.