Develop #34

Merged
wt merged 8 commits from develop into main 2026-09-17 10:24:04 +00:00
Showing only changes of commit 519024d73c - Show all commits
+15 -22
View File
@@ -6,11 +6,8 @@ jobs:
Prepare-Build-Testing-With-Make:
runs-on: alpine-sdk
steps:
- name: prepare-container
run: |
echo "192.168.3.113 gitea.home.com" >> /etc/hosts
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Building binary with make
run: |
sed -i '1s/^/#define TEST\n/' src/config/config.hpp && \
@@ -22,37 +19,33 @@ jobs:
Prepare-Build-Testing-With-CMake:
runs-on: alpine-sdk
steps:
- name: prepare-container
run: |
echo "192.168.3.113 gitea.home.com" >> /etc/hosts && \
apk add cmake
- name: Check out repository code
uses: actions/checkout@v3
- name: Building binary with CMake
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 && \
mkdir build && \
cd build && \
cmake .. && \
make -j$(nproc)
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: prepare-container
run: |
echo "192.168.3.113 gitea.home.com" >> /etc/hosts && \
apk add meson ninja cmake
- name: Check out repository code
uses: actions/checkout@v3
- name: Building binary with meson
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 setup build && \
ninja -C build
meson compile -C build
- name: Testing to run binary builded with meson
run: ./build/openrouter