Skip to content

Commit d3f4b78

Browse files
author
Levent KARAGÖL
committed
Github Action .yml files have been updated
1 parent ca62b16 commit d3f4b78

File tree

3 files changed

+50
-51
lines changed

3 files changed

+50
-51
lines changed

.github/workflows/macos.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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+

0 commit comments

Comments
 (0)