Files
iKv/.gitea/workflows/build.yml
GigabiteStudios c50490a2cc
Some checks failed
Build / unit-tests (push) Successful in 32s
Build / cmake-build (push) Failing after 51s
Build / build-script (push) Has been cancelled
ci(workflow): run cmake, build script, and tests in parallel
2026-06-14 22:24:20 -05:00

66 lines
1.3 KiB
YAML

name: Build
on:
push:
pull_request:
jobs:
cmake-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install build tools
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake ninja-build
- name: Configure CMake build
run: |
cmake -S . -B build -G Ninja
- name: Build with CMake
run: |
cmake --build build
build-script:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up MinGW
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: mingw-w64-x86_64-gcc
- name: Run batch build script
shell: cmd
run: demo\build.bat
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install build tools
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake ninja-build
- name: Configure unit tests
run: |
cmake -S . -B build-tests -G Ninja -DIKV_BUILD_DEMOS=OFF -DIKV_BUILD_TESTS=ON
- name: Run unit tests
run: |
cmake --build build-tests
ctest --test-dir build-tests --output-on-failure