Skip to content

Commit f4466fc

Browse files
committed
Update test.yaml
1 parent eb45b17 commit f4466fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ jobs:
4343
uses: microsoft/setup-msbuild@v2
4444
- name: Install libraries
4545
run: |
46-
where vcpkg
4746
vcpkg install gtest curl zlib brotli
4847
choco install openssl
4948
- name: Configure CMake for Release
50-
run: cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DHTTPLIB_TEST=ON -DHTTPLIB_REQUIRE_OPENSSL=ON -DHTTPLIB_REQUIRE_ZLIB=ON -DHTTPLIB_REQUIRE_BROTLI=ON
49+
run: cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE={{ .env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake -DHTTPLIB_TEST=ON -DHTTPLIB_REQUIRE_OPENSSL=ON -DHTTPLIB_REQUIRE_ZLIB=ON -DHTTPLIB_REQUIRE_BROTLI=ON
5150
- name: Build with CMake
5251
run: cmake --build build --config Release
5352
- name: Run tests with CTest
5453
run: ctest --output-on-failure --test-dir build -C Release
5554
env:
55+
VCPKG_ROOT: "C:/vcpkg"
5656
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"

0 commit comments

Comments
 (0)