Update CI to build using MSVC 2019

GitHub are going to be removing their windows-2016 images in March 2022,
and there's a brownout today. I've been using MSVC 2019 locally for a
while (a year?) without any problems, and LOOT itself is now using MSVC
2019.

This means that anything linking to the binaries needs to use MSVC 2019
or newer. The details are here:
<https://docs.microsoft.com/en-us/cpp/porting/binary-compat-2015-2017?view=msvc-170>.
This commit is contained in:
Oliver Hamlet
2022-02-07 22:09:59 +00:00
parent b165649285
commit 28102c1aa2
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -152,7 +152,7 @@ jobs:
if: github.event_name == 'push'
windows:
runs-on: windows-2016
runs-on: windows-2019
strategy:
matrix:
@@ -192,7 +192,7 @@ jobs:
run: |
mkdir build
cd build
cmake .. -G "Visual Studio 15 2017" -A ${{ matrix.platform }} -DBOOST_ROOT="boost_1_78_0" -DCPACK_PACKAGE_VERSION="${{ steps.get-libloot-version.outputs.version }}"
cmake .. -G "Visual Studio 16 2019" -A ${{ matrix.platform }} -DBOOST_ROOT="boost_1_78_0" -DCPACK_PACKAGE_VERSION="${{ steps.get-libloot-version.outputs.version }}"
cmake --build . --config ${{ env.MSVC_CONFIG }}
- name: Run tests
+3 -3
View File
@@ -28,7 +28,7 @@ jobs:
tag_name: ${{ steps.get-git-tag.outputs.name }}
release_name: libloot v${{ steps.get-git-tag.outputs.name }}
body: |
Requires Windows 7 or later and the [MSVC 2017 x86 redistributable](https://download.visualstudio.microsoft.com/download/pr/749aa419-f9e4-4578-a417-a43786af205e/d59197078cc425377be301faba7dd87a/vc_redist.x86.exe), and [7-Zip](http://www.7-zip.org/) to extract the archives.
Requires Windows 7 or later, the MSVC 2019 [x86](https://aka.ms/vs/16/release/vc_redist.x86.exe) or [x64](https://aka.ms/vs/16/release/vc_redist.x64.exe) redistributable for 32-bit and 64-bit builds respectively, and [7-Zip](http://www.7-zip.org/) to extract the archives.
## Change Logs
- [API](https://loot-api.readthedocs.io/en/latest/api/changelog.html)
@@ -131,7 +131,7 @@ jobs:
asset_content_type: application/octet-stream
windows:
runs-on: windows-2016
runs-on: windows-2019
needs: create_release
strategy:
@@ -173,7 +173,7 @@ jobs:
run: |
mkdir build
cd build
cmake .. -G "Visual Studio 15 2017" -A ${{ matrix.platform }} -DBOOST_ROOT="boost_1_78_0" -DCPACK_PACKAGE_VERSION="${{ steps.get-libloot-version.outputs.version }}"
cmake .. -G "Visual Studio 16 2019" -A ${{ matrix.platform }} -DBOOST_ROOT="boost_1_78_0" -DCPACK_PACKAGE_VERSION="${{ steps.get-libloot-version.outputs.version }}"
cmake --build . --config ${{ env.MSVC_CONFIG }}
- uses: actions/setup-python@v2