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
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user