added actions
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Has been cancelled
This commit is contained in:
1 parent
f0609e49b4
commit
0e3511119f
2 files changed
+23
No files matched your search
@@ -0,0 +1,20 @@
|
|||||||
|
name: Prepare Build and Testing executable binary
|
||||||
|
run-name: ${{ gitea.actor }}
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Prepare-Build-Testing-With-Make:
|
||||||
|
runs-on: alpine-sdk
|
||||||
|
steps:
|
||||||
|
- name: prepare-container
|
||||||
|
run: |
|
||||||
|
echo "83.172.39.220 gitea.home.com" >> /etc/hosts && \
|
||||||
|
apk add meson ninja cmake
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Building binary with make
|
||||||
|
run: |
|
||||||
|
echo "#define TEST" >> src/AuthService.hpp && \
|
||||||
|
make
|
||||||
|
- name: Testing to run binary builded with make
|
||||||
|
run: ./bin/auth_service
|
||||||
@@ -2,5 +2,8 @@
|
|||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
AuthService auth_service;
|
AuthService auth_service;
|
||||||
|
#ifdef TEST
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
return auth_service.serve("127.0.0.1", 43243);
|
return auth_service.serve("127.0.0.1", 43243);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user