added actions
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 9m57s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 3m46s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 4m42s

This commit is contained in:
wt
2025-01-05 18:50:46 +07:00
parent eccd6d8e05
commit 2603511bd7
2 changed files with 5 additions and 4 deletions
+3 -3
View File
@@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v3
- name: Building binary with make
run: |
echo "#define TEST" >> src/AuthService.hpp && \
echo "#define TEST" >> src/AuthService/AuthService.hpp && \
make -j$(nproc)
- name: Testing to run binary builded with make
run: ./bin/auth_service
@@ -30,7 +30,7 @@ jobs:
uses: actions/checkout@v3
- name: Building binary with CMake
run: |
echo "#define TEST" >> src/AuthService.hpp && \
echo "#define TEST" >> src/AuthService/AuthService.hpp && \
mkdir build && \
cd build && \
cmake .. && \
@@ -49,7 +49,7 @@ jobs:
uses: actions/checkout@v3
- name: Building binary with meson
run: |
echo "#define TEST" >> src/AuthService.hpp && \
echo "#define TEST" >> src/AuthService/AuthService.hpp && \
meson setup build && \
ninja -C build
- name: Testing to run binary builded with meson
+2 -1
View File
@@ -4,6 +4,7 @@ int main() {
AuthService auth_service;
#ifdef TEST
return 0;
#endif
#else
return auth_service.serve("127.0.0.1", 43243);
#endif
}