Update .gitea/workflows/actions.yaml
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
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
This commit is contained in:
@@ -4,53 +4,39 @@ on: [push]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Prepare-Build-Testing-With-Make:
|
Prepare-Build-Testing-With-Make:
|
||||||
runs-on: alpine-sdk
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Building binary with make
|
- name: Building binary with make
|
||||||
run: |
|
run: echo "#define TEST" >> src/AuthService/AuthService.hpp && make -j$(nproc)
|
||||||
echo "#define TEST" >> src/AuthService/AuthService.hpp && \
|
|
||||||
make -j$(nproc)
|
|
||||||
- name: Testing to run binary builded with make
|
- name: Testing to run binary builded with make
|
||||||
run: ./build/auth_service
|
run: ./build/auth_service
|
||||||
|
|
||||||
Prepare-Build-Testing-With-CMake:
|
Prepare-Build-Testing-With-CMake:
|
||||||
runs-on: alpine-sdk
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Building binary with CMake
|
- name: Install build tools
|
||||||
run: |
|
run: apt update && apt install -y cmake
|
||||||
echo "#define TEST" >> src/AuthService/AuthService.hpp && \
|
- name: Configure CMake
|
||||||
mkdir build && \
|
run: cmake -B ${{gitea.workspace}}/build
|
||||||
cd build && \
|
- name: Build project
|
||||||
cmake .. && \
|
run: echo "#define TEST" >> src/AuthService/AuthService.hpp && cmake --build ${{gitea.workspace}}/build
|
||||||
make -j$(nproc)
|
|
||||||
- name: Testing to run binary builded with CMake
|
- name: Testing to run binary builded with CMake
|
||||||
run: ./build/auth_service
|
run: ./build/auth_service
|
||||||
|
|
||||||
Prepare-Build-Testing-With-Meson:
|
Prepare-Build-Testing-With-Meson:
|
||||||
runs-on: alpine-sdk
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Building binary with meson
|
- name: Install build tools
|
||||||
run: |
|
run: apt update && apt install -y meson
|
||||||
echo "#define TEST" >> src/AuthService/AuthService.hpp && \
|
- name: Configure Project
|
||||||
meson setup build && \
|
run: meson setup build --buildtype=release
|
||||||
ninja -C build
|
- name: Build Project
|
||||||
|
run: echo "#define TEST" >> src/AuthService/AuthService.hpp && meson compile -C build
|
||||||
- name: Testing to run binary builded with meson
|
- name: Testing to run binary builded with meson
|
||||||
run: ./build/auth_service
|
run: ./build/auth_service
|
||||||
|
|||||||
Reference in New Issue
Block a user