From 5533641319edd47ad2d16511b73180e49cde1d02 Mon Sep 17 00:00:00 2001 From: Jonathan Gopel Date: Thu, 19 Nov 2020 07:04:16 -0700 Subject: [PATCH] :new: [CI] Test with C++14 in Windows 2019 (#2020) Problem: - Both Windows builds test C++14 Solution: - Use C++11 for `windows-2016` builds and C++14 for `windows-2019` builds. Co-authored-by: Jonathan Gopel --- .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