From 0e3511119ffdfb3812012c5fcc21988ce15695da Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Sun, 5 Jan 2025 18:31:02 +0700 Subject: [PATCH] added actions --- .gitea/workflows/actions.yaml | 20 ++++++++++++++++++++ src/auth_service.cpp | 3 +++ 2 files changed, 23 insertions(+) create mode 100644 .gitea/workflows/actions.yaml diff --git a/.gitea/workflows/actions.yaml b/.gitea/workflows/actions.yaml new file mode 100644 index 0000000..02142c9 --- /dev/null +++ b/.gitea/workflows/actions.yaml @@ -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 \ No newline at end of file diff --git a/src/auth_service.cpp b/src/auth_service.cpp index f03e430..0e3519a 100644 --- a/src/auth_service.cpp +++ b/src/auth_service.cpp @@ -2,5 +2,8 @@ int main() { AuthService auth_service; +#ifdef TEST + return 0; +#endif return auth_service.serve("127.0.0.1", 43243); }