Files
iKvxx/.gitea/workflows/bindings.yml
GigabiteStudios e651ae1575
Some checks failed
C++ bindings / gcc / Debug (push) Failing after 10s
C++ bindings / clang / Debug (push) Failing after 17s
C++ bindings / clang / Release (push) Failing after 10s
C++ bindings / gcc / Release (push) Failing after 16s
feat(bindings): add modern C++ interface for iKv
2026-06-17 18:57:54 -05:00

57 lines
1.3 KiB
YAML

name: C++ bindings
on:
push:
pull_request:
jobs:
test:
name: ${{ matrix.compiler }} / ${{ matrix.build_type }}
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- compiler: gcc
cc: gcc
cxx: g++
build_type: Debug
- compiler: gcc
cc: gcc
cxx: g++
build_type: Release
- compiler: clang
cc: clang
cxx: clang++
build_type: Debug
- compiler: clang
cc: clang
cxx: clang++
build_type: Release
steps:
- name: Checkout with submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
run: >-
cmake -S . -B build
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DIKVXX_BUILD_TESTS=ON
-DIKVXX_INSTALL=ON
- name: Build
run: cmake --build build --parallel 2
- name: Test bindings
run: ctest --test-dir build --build-config ${{ matrix.build_type }} --output-on-failure
- name: Verify installation
run: cmake --install build --prefix "${{ runner.temp }}/ikvxx-install"