From 1c9dfc42801e2fd5c68bc1708170a67246063cc9 Mon Sep 17 00:00:00 2001 From: Jonathan Gopel Date: Wed, 11 Nov 2020 09:13:00 -0700 Subject: [PATCH] :new: [CI] Test with C++14 in Windows 2019 Problem: - Both Windows builds test C++14 Solution: - Use C++11 for `windows-2016` builds and C++14 for `windows-2019` builds. --- .github/workflows/windows.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index f66e2bc9..0e5ad81a 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -13,6 +13,10 @@ jobs: platform: [Win32, x64] build_type: [Debug, Release] include: + - os: windows-2016 + standard: 11 + - os: windows-2019 + standard: 14 - os: windows-2016 platform: Win32 build_type: Debug @@ -33,7 +37,9 @@ jobs: working-directory: ${{runner.workspace}}/build run: | cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} ${{matrix.shared}} \ - -A ${{matrix.platform}} $GITHUB_WORKSPACE + -A ${{matrix.platform}} \ + -DCMAKE_CXX_STANDARD=${{matrix.standard}} \ + $GITHUB_WORKSPACE - name: Build working-directory: ${{runner.workspace}}/build