diff --git a/.gitea/workflows/actions.yaml b/.gitea/workflows/actions.yaml index 37f150f..035dc64 100644 --- a/.gitea/workflows/actions.yaml +++ b/.gitea/workflows/actions.yaml @@ -4,53 +4,39 @@ on: [push] jobs: Prepare-Build-Testing-With-Make: - runs-on: alpine-sdk + runs-on: ubuntu-latest steps: - - name: prepare-container - run: | - echo "192.168.3.113 gitea.home.com" >> /etc/hosts && \ - apk add openssl openssl-dev - name: Check out repository code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Building binary with make - run: | - echo "#define TEST" >> src/AuthService/AuthService.hpp && \ - make -j$(nproc) + run: echo "#define TEST" >> src/AuthService/AuthService.hpp && make -j$(nproc) - name: Testing to run binary builded with make run: ./build/auth_service Prepare-Build-Testing-With-CMake: - runs-on: alpine-sdk + runs-on: ubuntu-latest steps: - - name: prepare-container - run: | - echo "192.168.3.113 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/AuthService.hpp && \ - mkdir build && \ - cd build && \ - cmake .. && \ - make -j$(nproc) + uses: actions/checkout@v4 + - name: Install build tools + run: apt update && apt install -y cmake + - name: Configure CMake + run: cmake -B ${{gitea.workspace}}/build + - name: Build project + run: echo "#define TEST" >> src/AuthService/AuthService.hpp && cmake --build ${{gitea.workspace}}/build - name: Testing to run binary builded with CMake run: ./build/auth_service Prepare-Build-Testing-With-Meson: - runs-on: alpine-sdk + runs-on: ubuntu-latest steps: - - name: prepare-container - run: | - echo "192.168.3.113 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/AuthService.hpp && \ - meson setup build && \ - ninja -C build + uses: actions/checkout@v4 + - name: Install build tools + run: apt update && apt install -y meson + - name: Configure Project + run: meson setup build --buildtype=release + - name: Build Project + run: echo "#define TEST" >> src/AuthService/AuthService.hpp && meson compile -C build - name: Testing to run binary builded with meson run: ./build/auth_service