Skip to content

Implement C bindings #6

Implement C bindings

Implement C bindings #6

Workflow file for this run

name: build-and-test
on:
push:
branches: [master]
pull_request:
jobs:
build-and-test:
name: Build and test on ${{matrix.os}} in ${{matrix.build-type}} mode
runs-on: ${{matrix.os}}
strategy:
matrix:
build-type: [Debug, Release]
c-api: [ON, OFF]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
working-directory: ${{runner.workspace}}/build
shell: bash # Necessary because of the $GITHUB_WORKSPACE variable
run: cmake -DCMAKE_BUILD_TYPE=${{matrix.build-type}} -DBVH_BUILD_C_API=${{matrix.c-api}} -DBUILD_TESTING=ON -S $GITHUB_WORKSPACE
- name: Build
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config ${{matrix.build-type}}
- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest -C ${{matrix.build-type}} --verbose --rerun-failed --output-on-failure