Skip to content

Commit ba0bb2d

Browse files
flichtenheldJenkins-dev
authored andcommitted
GHA: Fix MSVC UT runs not loading OpenSSL legacy provider
Previously vcpkg set the build directory as default module directory. But that was obviously a bad idea when installing this binary on other systems. So they fixed it. But that means we need to restore this setting manually when running UTs. Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
1 parent 23bbe11 commit ba0bb2d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/msbuild.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ jobs:
77
strategy:
88
matrix:
99
arch: [x86, x64, arm64]
10+
include:
11+
- arch: x64
12+
cmake_dir: amd64
13+
- arch: x86
14+
cmake_dir: x86
15+
- arch: arm64
16+
cmake_dir: arm64
1017

1118
env:
1219
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
@@ -38,6 +45,9 @@ jobs:
3845
- name: Run CMake with vcpkg.json manifest
3946
uses: lukka/run-cmake@5d55ea7949e25f69f0ecb516d8d572297e03a956 # v10.9
4047
if: ${{ matrix.arch != 'arm64' }}
48+
env:
49+
# make sure legacy provider is available for UTs
50+
OPENSSL_MODULES: ${{ github.workspace }}\build\msvc\${{ matrix.cmake_dir }}\vcpkg_installed\${{ env.VCPKG_DEFAULT_TRIPLET }}\bin
4151
with:
4252
configurePreset: win-${{ matrix.arch }}-release
4353
buildPreset: win-${{ matrix.arch }}-release

0 commit comments

Comments
 (0)