Skip to content

Commit ac82410

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

File tree

3 files changed

+78
-2
lines changed

3 files changed

+78
-2
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: test-macos-aarch64
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
runs-on: macos-11.0
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Install prerequisites
17+
run: |
18+
brew update
19+
brew install cmake pkg-config git wget curl
20+
brew install vcpkg
21+
- name: Install vcpkg
22+
run: |
23+
vcpkg integrate install
24+
- name: Clone project repository
25+
run: |
26+
git clone https://github.com/lk-libs/libcpp-http-client.git ~/libcpp-http-client
27+
- name: Run cmake with vcpkg toolchain
28+
run: |
29+
cd ~/libcpp-http-client
30+
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$(brew --prefix vcpkg)/scripts/buildsystems/vcpkg.cmake
31+
- name: Build the project
32+
run: |
33+
cd ~/libcpp-http-client
34+
cmake --build build --config Release
35+
- name: Run tests
36+
run: |
37+
cd ~/libcpp-http-client/build
38+
./test/test
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: test-macos-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: macos-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Install prerequisites
17+
run: |
18+
brew update
19+
brew install cmake pkg-config git wget curl
20+
brew install vcpkg
21+
- name: Install vcpkg
22+
run: |
23+
vcpkg integrate install
24+
- name: Clone project repository
25+
run: |
26+
git clone https://github.com/lk-libs/libcpp-http-client.git ~/libcpp-http-client
27+
- name: Run cmake with vcpkg toolchain
28+
run: |
29+
cd ~/libcpp-http-client
30+
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$(brew --prefix vcpkg)/scripts/buildsystems/vcpkg.cmake
31+
- name: Build the project
32+
run: |
33+
cd ~/libcpp-http-client
34+
cmake --build build --config Release
35+
- name: Run tests
36+
run: |
37+
cd ~/libcpp-http-client/build
38+
./test/test

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# libcpp-http-client
22
Modern non-blocking HTTP Client library for C++ (17+)
33

4-
[![test-linux-x86_64](https://github.com/lk-libs/libcpp-http-client/actions/workflows/test-linux-x86_64.yml/badge.svg)](https://github.com/lk-libs/libcpp-http-client/actions/workflows/test-linux-x86_64.yml)
5-
[![test-linux-aarch64](https://github.com/lk-libs/libcpp-http-client/actions/workflows/test-linux-aarch64.yml/badge.svg)](https://github.com/lk-libs/libcpp-http-client/actions/workflows/test-linux-aarch64.yml)
4+
[![linux-x86_64 ](https://github.com/lk-libs/libcpp-http-client/actions/workflows/test-linux-x86_64.yml/badge.svg)](https://github.com/lk-libs/libcpp-http-client/actions/workflows/test-linux-x86_64.yml)
5+
[![linux-aarch64 ](https://github.com/lk-libs/libcpp-http-client/actions/workflows/test-linux-aarch64.yml/badge.svg)](https://github.com/lk-libs/libcpp-http-client/actions/workflows/test-linux-aarch64.yml)

0 commit comments

Comments
 (0)