Merge pull request #99 from jbikker/dev #553
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, dev ] | |
pull_request: | |
branches: [ main, dev ] | |
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 libx11-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 }} |