Builders now accept C_INT, C_TRAV for tweaking SAH. #130
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tinybvh CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
config: [Release, Debug] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Packages | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: sudo apt install -y libboost-system-dev | |
- name: Configure CMake | |
run: > | |
cmake -LA -B ${{github.workspace}}/build | |
-DCMAKE_BUILD_TYPE=${{ matrix.config }} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{ matrix.config }} | |
- name: Run tests | |
working-directory: ${{github.workspace}}/build | |
run: ctest -C ${{ matrix.config }} |