Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 1m35s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 1m29s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 54s
43 lines
1.7 KiB
YAML
43 lines
1.7 KiB
YAML
name: Prepare Build and Testing executable binary
|
|
run-name: ${{ gitea.actor }}
|
|
on: [push]
|
|
|
|
jobs:
|
|
Prepare-Build-Testing-With-Make:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
- name: Building binary with make
|
|
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: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
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: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
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
|