From 8c4e5c3c368d0c9f3f4fb93176857ec7a5733da3 Mon Sep 17 00:00:00 2001 From: Simon Gene Gottlieb Date: Thu, 19 Oct 2023 09:38:41 +0200 Subject: [PATCH] feat: add vs2019 ci --- .github/workflows/ci_win.yml | 2 +- .github/workflows/ci_win_2019.yml | 63 +++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci_win_2019.yml diff --git a/.github/workflows/ci_win.yml b/.github/workflows/ci_win.yml index 4bb7117..7b6316f 100644 --- a/.github/workflows/ci_win.yml +++ b/.github/workflows/ci_win.yml @@ -29,7 +29,7 @@ jobs: include: - name: "Visual Studio 17 2022" build_type: Release - cpp: 23 + cpp: 20 steps: - name: Setup MSVC diff --git a/.github/workflows/ci_win_2019.yml b/.github/workflows/ci_win_2019.yml new file mode 100644 index 0000000..8d025ca --- /dev/null +++ b/.github/workflows/ci_win_2019.yml @@ -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/msvc-dev-cmd@v1.12.1 + 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