Skip to content

Commit cdfa631

Browse files
committed
First commit
1 parent 94ef1bb commit cdfa631

135 files changed

Lines changed: 24052 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/cmake_clang.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Clang
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Trigger on push
7+
pull_request:
8+
branches:
9+
- main # Trigger on pull
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest # Use Ubuntu environment for the build
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4 # Checkout the repository code
18+
19+
- name: Install libcurl
20+
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev
21+
22+
- name: Configure CMake with Clang
23+
run: cmake -S . -B build -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ # Configure CMake with Clang as the compiler
24+
25+
- name: Build
26+
run: cmake --build build # Build the project using CMake
27+
28+
- name: Run Async-HTTPApp
29+
run: ./build/Async-HTTPApp # Run the built executable

.github/workflows/cmake_ubuntu.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Ubuntu
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Trigger on push
7+
pull_request:
8+
branches:
9+
- main # Trigger on pull
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest # Use Ubuntu environment for the build
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4 # Checkout the repository code
18+
19+
- name: Install libcurl
20+
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev
21+
22+
- name: Configure CMake
23+
run: cmake -S . -B build # Configure CMake to generate build files in 'build' directory
24+
25+
- name: Build
26+
run: cmake --build build # Build the project using CMake
27+
28+
- name: Run Async-HTTPApp
29+
run: ./build/Async-HTTPApp # Run the built executable
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Windows
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Trigger on push
7+
pull_request:
8+
branches:
9+
- main # Trigger on pull
10+
11+
jobs:
12+
build:
13+
runs-on: windows-latest # Use Windows environment for the build
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4 # Checkout the repository code
18+
19+
- name: Install libcurl via vcpkg
20+
run: vcpkg install curl:x64-windows
21+
22+
- name: Set up Visual Studio
23+
uses: microsoft/setup-msbuild@v2 # Set up Visual Studio environment (MSBuild)
24+
25+
- name: Configure CMake
26+
run: cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
27+
28+
- name: Build
29+
run: cmake --build build --config Release # Build the project using CMake with Release configuration
30+
31+
- name: Run Async-HTTPApp
32+
run: .\build\Release\Async-HTTPApp.exe # Run the built executable

0 commit comments

Comments
 (0)