Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .github/workflows/CI-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ jobs:
build:
strategy:
matrix:
# windows 2016 should default to VS 2017. Not supported by setup-msbuild
os: [windows-2019]
os: [windows-2019, windows-2022]
fail-fast: false

runs-on: ${{ matrix.os }}
Expand All @@ -28,15 +27,22 @@ jobs:
uses: microsoft/setup-msbuild@v1.0.2

- name: Run cmake
if: matrix.os == 'windows-2019'
run: |
cmake -G "Visual Studio 16" . -A x64
cmake -G "Visual Studio 16 2019" -A x64 . || exit /b !errorlevel!
dir

- name: Run cmake
if: matrix.os == 'windows-2022'
run: |
cmake -G "Visual Studio 17 2022" -A x64 . || exit /b !errorlevel!
dir

- name: Build
run: |
msbuild -m simplecpp.sln /p:Configuration=Release /p:Platform=x64
msbuild -m simplecpp.sln /p:Configuration=Release /p:Platform=x64 || exit /b !errorlevel!

- name: Test
run: |
.\Release\testrunner.exe
.\Release\testrunner.exe || exit /b !errorlevel!