File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -42,19 +42,25 @@ jobs:
4242
4343 - name : Prepare build environment
4444 run : |
45- $env:CMAKE_TOOLCHAIN_FILE="${env:VCPKG_ROOT}\scripts\buildsystems\vcpkg.cmake"
46- echo "CMAKE_TOOLCHAIN_FILE=${env:CMAKE_TOOLCHAIN_FILE}" | Out-File -Append -Encoding ascii $env:GITHUB_ENV
47- echo "CMAKE_TOOLCHAIN_FILE is set to ${env:CMAKE_TOOLCHAIN_FILE}"
45+ echo "CMAKE_TOOLCHAIN_FILE=${env:VCPKG_ROOT}\scripts\buildsystems\vcpkg.cmake" | Out-File -Append -Encoding ascii $env:GITHUB_ENV
4846
4947 - name : Configure CMake project
5048 run : |
51- echo "Using CMAKE_TOOLCHAIN_FILE: ${env:CMAKE_TOOLCHAIN_FILE}"
52- cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="${env:CMAKE_TOOLCHAIN_FILE}"
49+ cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${env:CMAKE_TOOLCHAIN_FILE}
5350
5451 - name : Build the project
5552 run : |
5653 cmake --build build --config Release
5754
55+ - name : Check test executable
56+ run : |
57+ if (Test-Path "D:\a\libcpp-http-client\libcpp-http-client\build\test\test.exe") {
58+ Write-Host "Test executable exists."
59+ } else {
60+ Write-Host "Test executable does not exist."
61+ exit 1
62+ }
63+
5864 - name : Run tests
5965 run : |
6066 & "D:\a\libcpp-http-client\libcpp-http-client\build\test\test.exe"
You can’t perform that action at this time.
0 commit comments