Update curvatures.cpp from Daniele Panozzo’s comments #3
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: CI (linux/macOS/windows) | |
on: | |
push: | |
branches: [ main ] | |
env: | |
# if needed | |
CONFIG_GLOBAL: | |
CONFIG_LINUX: | |
CONFIG_MAC: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
BUILD_TYPE: [Debug,Release] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 10 | |
- name: Install linux deps | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install xorg-dev libglu1-mesa-dev | |
- name: Install macOS deps | |
if: matrix.os == 'macOS-latest' | |
run: echo "No deps on macos" | |
- name: Create Build Environment | |
run: cmake -E make_directory ${{runner.workspace}}/build | |
- name: Configure CMake (linux) | |
if: matrix.os == 'ubuntu-latest' | |
shell: bash | |
working-directory: ${{runner.workspace}}/build | |
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} $CONFIG_GLOBAL $CONFIG_LINUX | |
- name: Configure CMake (macOS) | |
if: matrix.os == 'macOS-latest' | |
shell: bash | |
working-directory: ${{runner.workspace}}/build | |
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} $CONFIG_GLOBAL $CONFIG_MAC | |
- name: Build | |
working-directory: ${{runner.workspace}}/build | |
shell: bash | |
run: cmake --build . --config ${{ matrix.BUILD_TYPE }} --parallel 3 | |
- name: Test | |
working-directory: ${{runner.workspace}}/build | |
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' | |
shell: bash | |
run: | | |
echo ctest -C ${{ matrix.BUILD_TYPE }} --output-on-failure | |
ctest -C $${{ matrix.BUILD_TYPE }} --output-on-failure |