Files
openrouter/.gitea/workflows/actions.yaml
T
wt 519024d73c
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 54s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Failing after 5s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Failing after 5s
Update .gitea/workflows/actions.yaml
2026-09-17 17:17:35 +07:00

52 lines
2.0 KiB
YAML

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: Check out repository code
uses: actions/checkout@v4
- name: Building binary with make
run: |
sed -i '1s/^/#define TEST\n/' src/config/config.hpp && \
echo "#define TEST" >> src/OpenRouter/OpenRouter.hpp && \
make -j$(nproc)
- name: Testing to run binary builded with make
run: ./openrouter
Prepare-Build-Testing-With-CMake:
runs-on: alpine-sdk
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: |
sed -i '1s/^/#define TEST\n/' src/config/config.hpp && \
echo "#define TEST" >> src/OpenRouter/OpenRouter.hpp && \
cmake --build ${{gitea.workspace}}/build
- name: Testing to run binary builded with CMake
run: ./build/openrouter
Prepare-Build-Testing-With-Meson:
runs-on: alpine-sdk
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: |
sed -i '1s/^/#define TEST\n/' src/config/config.hpp && \
echo "#define TEST" >> src/OpenRouter/OpenRouter.hpp && \
meson compile -C build
- name: Testing to run binary builded with meson
run: ./build/openrouter