@@ -36,13 +36,11 @@ jobs:
3636 config :
3737 - name : " Windows 32bit"
3838 arch : x86
39- openssl_dir : C:\vcpkg\packages\openssl_x86-windows-static
4039 cmake_additional_opt : " "
4140 vcpkg_triplet : x86-windows-static
4241 cmake_version : " 3.31.6"
4342 - name : " Windows 64bit"
4443 arch : x64
45- openssl_dir : C:\vcpkg\packages\openssl_x64-windows-static
4644 cmake_additional_opt : " "
4745 vcpkg_triplet : x64-windows-static
4846 cmake_version : " 3.31.6"
@@ -91,10 +89,10 @@ jobs:
9189 uses : actions/cache/restore@v4
9290 with :
9391 path : |
94- C:\vcpkg\packages
95- key : ${{ runner.os }}-${{ matrix.config.arch }}-wintest-vcpkg-${{ steps.get-date.outputs.date }}
92+ C:\vcpkg\installed
93+ key : ${{ runner.os }}-${{ matrix.config.arch }}-wintest-vcpkg-installed- ${{ steps.get-date.outputs.date }}
9694 restore-keys : |
97- ${{ runner.os }}-${{ matrix.config.arch }}-wintest-vcpkg-
95+ ${{ runner.os }}-${{ matrix.config.arch }}-wintest-vcpkg-installed-
9896 enableCrossOsArchive : false
9997
10098 - name : Build openssl with vcpkg
@@ -107,12 +105,17 @@ jobs:
107105 C:\vcpkg\vcpkg install --recurse libyaml --triplet ${{ matrix.config.vcpkg_triplet }}
108106 shell : cmd
109107
108+ - name : Upgrade any outdated vcpkg packages
109+ run : |
110+ C:\vcpkg\vcpkg upgrade --no-dry-run
111+ shell : cmd
112+
110113 - name : Save packages of vcpkg
111114 id : save-vcpkg-sources
112115 uses : actions/cache/save@v4
113116 with :
114117 path : |
115- C:\vcpkg\packages
118+ C:\vcpkg\installed
116119 key : ${{ steps.cache-unit-test-vcpkg-sources.outputs.cache-primary-key }}
117120 enableCrossOsArchive : false
118121
@@ -121,9 +124,9 @@ jobs:
121124 cmake -G "NMake Makefiles" `
122125 -D FLB_TESTS_INTERNAL=On `
123126 -D FLB_NIGHTLY_BUILD='${{ inputs.unstable }}' `
124- -D OPENSSL_ROOT_DIR='${{ matrix.config.openssl_dir }}' `
127+ -D OPENSSL_ROOT_DIR='C:\vcpkg\installed\ ${{ matrix.config.vcpkg_triplet }}' `
125128 ${{ matrix.config.cmake_additional_opt }} `
126- -D FLB_LIBYAML_DIR=C:\vcpkg\packages\libyaml_ ${{ matrix.config.vcpkg_triplet }} `
129+ -D FLB_LIBYAML_DIR=' C:\vcpkg\installed\ ${{ matrix.config.vcpkg_triplet }}' `
127130 -D FLB_WITHOUT_flb-rt-out_elasticsearch=On `
128131 -D FLB_WITHOUT_flb-rt-out_td=On `
129132 -D FLB_WITHOUT_flb-rt-out_forward=On `
0 commit comments