From 6f94d1412635504d02eec4daa5a2143405beb030 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Sun, 5 Jan 2025 18:46:22 +0700 Subject: [PATCH] added actions --- .gitea/workflows/actions.yaml | 38 ++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/actions.yaml b/.gitea/workflows/actions.yaml index 74f22b3..9d4172f 100644 --- a/.gitea/workflows/actions.yaml +++ b/.gitea/workflows/actions.yaml @@ -17,4 +17,40 @@ jobs: 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 + run: ./bin/auth_service + + Prepare-Build-Testing-With-CMake: + runs-on: alpine-sdk + steps: + - name: prepare-container + run: | + echo "83.172.39.220 gitea.home.com" >> /etc/hosts && \ + apk add openssl openssl-dev cmake + - name: Check out repository code + uses: actions/checkout@v3 + - name: Building binary with CMake + run: | + echo "#define TEST" >> src/AuthService.hpp && \ + mkdir build && \ + cd build && \ + cmake .. && \ + make + - name: Testing to run binary builded with CMake + run: ./build/auth_service + + Prepare-Build-Testing-With-Meson: + runs-on: alpine-sdk + steps: + - name: prepare-container + run: | + echo "83.172.39.220 gitea.home.com" >> /etc/hosts && \ + apk add openssl openssl-dev meson ninja cmake + - name: Check out repository code + uses: actions/checkout@v3 + - name: Building binary with meson + run: | + echo "#define TEST" >> src/AuthService.hpp && \ + meson setup build && \ + ninja -C build + - name: Testing to run binary builded with meson + run: ./build/auth_service \ No newline at end of file