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:
1 parent
eccd6d8e05
commit
2603511bd7
2 files changed
+5
-4
No files matched your search
@@ -14,7 +14,7 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Building binary with make
|
- name: Building binary with make
|
||||||
run: |
|
run: |
|
||||||
echo "#define TEST" >> src/AuthService.hpp && \
|
echo "#define TEST" >> src/AuthService/AuthService.hpp && \
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
- name: Testing to run binary builded with make
|
- name: Testing to run binary builded with make
|
||||||
run: ./bin/auth_service
|
run: ./bin/auth_service
|
||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Building binary with CMake
|
- name: Building binary with CMake
|
||||||
run: |
|
run: |
|
||||||
echo "#define TEST" >> src/AuthService.hpp && \
|
echo "#define TEST" >> src/AuthService/AuthService.hpp && \
|
||||||
mkdir build && \
|
mkdir build && \
|
||||||
cd build && \
|
cd build && \
|
||||||
cmake .. && \
|
cmake .. && \
|
||||||
@@ -49,7 +49,7 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Building binary with meson
|
- name: Building binary with meson
|
||||||
run: |
|
run: |
|
||||||
echo "#define TEST" >> src/AuthService.hpp && \
|
echo "#define TEST" >> src/AuthService/AuthService.hpp && \
|
||||||
meson setup build && \
|
meson setup build && \
|
||||||
ninja -C build
|
ninja -C build
|
||||||
- name: Testing to run binary builded with meson
|
- name: Testing to run binary builded with meson
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ int main() {
|
|||||||
AuthService auth_service;
|
AuthService auth_service;
|
||||||
#ifdef TEST
|
#ifdef TEST
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#else
|
||||||
return auth_service.serve("127.0.0.1", 43243);
|
return auth_service.serve("127.0.0.1", 43243);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user