Skip to content

Commit 272458c

Browse files
author
Levent KARAGÖL
committed
Github Action .yml files have been updated
1 parent 8e80932 commit 272458c

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/windows-x86_64.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)