File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -158,8 +158,6 @@ jobs:
158
158
159
159
windows-native :
160
160
name : ${{ matrix.job-name }}
161
- # Use latest image, but hardcode version to avoid silent upgrades (and breaks).
162
- # See: https://github.com/actions/runner-images#available-images.
163
161
runs-on : windows-2022
164
162
165
163
if : ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }}
@@ -205,6 +203,8 @@ jobs:
205
203
run : |
206
204
echo "set(VCPKG_BUILD_TYPE release)" >> "${VCPKG_INSTALLATION_ROOT}/triplets/x64-windows.cmake"
207
205
echo "set(VCPKG_BUILD_TYPE release)" >> "${VCPKG_INSTALLATION_ROOT}/triplets/x64-windows-static.cmake"
206
+ # Workaround for libevent, which requires CMake 3.1 but is incompatible with CMake >= 4.0.
207
+ sed -i '1s/^/set(ENV{CMAKE_POLICY_VERSION_MINIMUM} 3.5)\n/' "${VCPKG_INSTALLATION_ROOT}/scripts/ports.cmake"
208
208
209
209
- name : vcpkg tools cache
210
210
uses : actions/cache@v4
You can’t perform that action at this time.
0 commit comments