Skip to content

[MISC] Clang fixes and CXX standard #109

[MISC] Clang fixes and CXX standard

[MISC] Clang fixes and CXX standard #109

Workflow file for this run

name: Windows
on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch:
concurrency:
group: windows-${{ 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: ${{ matrix.os }}
timeout-minutes: 180
strategy:
fail-fast: false
matrix:
include:
- name: "Visual Studio 16 2019"
os: windows-2019
toolset: '14.29'
msvc_ver: '16'
build_type: Release
cxx_flags: "/std:c++latest /EHsc"
steps:
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
toolset: ${{ matrix.toolset }}
- 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
ls
cd tdl-build
cmake ../tdl -G"${{ matrix.name }}" `
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} `
-DCMAKE_CXX_FLAGS="${{ matrix.cxx_flags }}"
- 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