GH Actions: Newer version of run-vcpkg, older version of Windows

The 'windows-latest' image is now windows-2022, but the vcpkg we're
using doesn't know to look for visual studio 2022. Reverting to use
windows-2019 so vcpkg works with it.

Also switching to the run-vcpkg v7.4. Not going with the new v10 series
because that changes the inputs and I'm not ready to figure out how to
change the params to make it work.
This commit is contained in:
Micah Snyder 2022-06-06 14:57:47 -07:00 committed by Micah Snyder
parent 74887875db
commit c34dd0fa26

View file

@ -21,7 +21,7 @@ env:
jobs: jobs:
build-windows: build-windows:
runs-on: windows-latest runs-on: windows-2019
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
@ -39,7 +39,7 @@ jobs:
# Restore from cache the previously built ports. If cache-miss, download, build vcpkg ports. # Restore from cache the previously built ports. If cache-miss, download, build vcpkg ports.
- name: Restore vcpkg ports from cache or install vcpkg - name: Restore vcpkg ports from cache or install vcpkg
# Download and build vcpkg, without installing any port. If content is cached already, it is a no-op. # Download and build vcpkg, without installing any port. If content is cached already, it is a no-op.
uses: lukka/run-vcpkg@v5 uses: lukka/run-vcpkg@v7.4
id: runvcpkg id: runvcpkg
with: with:
vcpkgArguments: "curl[openssl] json-c libxml2 pcre2 check pthreads zlib pdcurses bzip2" vcpkgArguments: "curl[openssl] json-c libxml2 pcre2 check pthreads zlib pdcurses bzip2"