feat: testing ci c++17, c++20, c++23 aswell as gcc and clang #4
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
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 cwl-cpp-auto | |
uses: actions/checkout@v4 | |
with: | |
path: repo | |
fetch-depth: 2 | |
- name: Configure tests | |
run: | | |
New-Item -Name "build" -ItemType "directory" -Force | |
ls | |
cd build | |
cmake ../repo -G"${{ matrix.name }}" ` | |
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ` | |
-DCMAKE_CXX_FLAGS="${{ matrix.cxx_flags }}" | |
- name: Build tests | |
run: | | |
cd build | |
cmake --build . --config "${{ matrix.build_type }}" --parallel 2 ` -- /p:TrackFileAccess=false | |
- name: Run tests | |
run: | | |
cd build | |
ctest . -j2 -C "${{ matrix.build_type }}" --output-on-failure --timeout 240 |