File tree Expand file tree Collapse file tree 3 files changed +50
-51
lines changed Expand file tree Collapse file tree 3 files changed +50
-51
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : windows-x86_64
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+
11+ jobs :
12+ test :
13+ runs-on : windows-latest
14+ steps :
15+ - uses : actions/checkout@v3
16+
17+ - name : Set up environment
18+ run : |
19+ choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System'
20+ choco install git
21+ choco install ninja
22+
23+ - name : Install vcpkg
24+ run : |
25+ git clone https://github.com/microsoft/vcpkg.git C:\vcpkg
26+ .\C:\vcpkg\bootstrap-vcpkg.bat
27+ echo "VCPKG_ROOT=C:\vcpkg" | Out-File -Append -Encoding ascii $env:GITHUB_ENV
28+
29+ - name : Integrate vcpkg and install dependencies
30+ run : |
31+ $env:VCPKG_ROOT = "C:\vcpkg"
32+ .\C:\vcpkg\vcpkg integrate install
33+ .\C:\vcpkg\vcpkg install --triplet x64-windows your-library-list
34+
35+ - name : Prepare build environment
36+ run : |
37+ echo "CMAKE_TOOLCHAIN_FILE=${env:VCPKG_ROOT}\scripts\buildsystems\vcpkg.cmake" | Out-File -Append -Encoding ascii $env:GITHUB_ENV
38+
39+ - name : Configure CMake project
40+ run : |
41+ cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${env:CMAKE_TOOLCHAIN_FILE}
42+
43+ - name : Build the project
44+ run : |
45+ cmake --build build --config Release
46+
47+ - name : Run tests
48+ run : |
49+ .\build\test\YourTestExecutable.exe
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ Modern non-blocking HTTP Client library for C++ (17+)
33
44[ ![ linux-x86_64] ( https://github.com/lk-libs/libcpp-http-client/actions/workflows/linux-x86_64.yml/badge.svg )] ( https://github.com/lk-libs/libcpp-http-client/actions/workflows/linux-x86_64.yml )
55[ ![ linux-aarch64] ( https://github.com/lk-libs/libcpp-http-client/actions/workflows/linux-aarch64.yml/badge.svg )] ( https://github.com/lk-libs/libcpp-http-client/actions/workflows/linux-aarch64.yml )
6- [ ![ macos ] ( https://github.com/lk-libs/libcpp-http-client/actions/workflows/macos.yml/badge.svg )] ( https://github.com/lk-libs/libcpp-http-client/actions/workflows/macos.yml )
6+
You can’t perform that action at this time.
0 commit comments