Skip to content

Add C API for use in language bindings #24

Add C API for use in language bindings

Add C API for use in language bindings #24

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
test:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
build_type:
- Debug
- Release
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v5
with:
persist-credentials: false
- name: Setup MSVC
if: runner.os == 'Windows'
uses: TheMrMilchmann/setup-msvc-dev@v4
with:
arch: x64
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: 6.*
- name: Build
shell: bash
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
export CMAKE_GENERATOR=Ninja
fi
cmake -S. -Bbuild \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCMAKE_INSTALL_PREFIX=install \
-DLIBBNDL_BUILD_TOOLS=ON \
-DLIBBNDL_BUILD_UI=ON \
-DLIBBNDL_INSTALL_UI=ON \
-DLIBBNDL_BUILD_VALIDATIONTEST=ON
cmake --build build
cmake --install build
- uses: actions/upload-artifact@v5
with:
name: libbndl-${{ matrix.build_type }}-${{ matrix.os }}
path: install/*