Skip to content

Commit a34e780

Browse files
authored
Update test.yaml
1 parent 0297fbe commit a34e780

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/test.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ jobs:
4646
vcpkg install gtest curl zlib brotli
4747
choco install openssl
4848
- name: Configure CMake for Release
49-
run: cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/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
5050
- name: Build with CMake
5151
run: cmake --build build --config Release
5252
- name: Run tests with CTest
5353
run: ctest --output-on-failure --test-dir build -C Release
54-
env:
54+
env:
55+
VCPKG_ROOT: ${{ VCPKG_INSTALLATION_ROOT }}
5556
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"

0 commit comments

Comments
 (0)