Skip to content

Cgal patch unused

Cgal patch unused #69

Workflow file for this run

name: Compile and Test OpenGR
defaults:
run:
shell: bash
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- { name: "Windows MSVC", os: windows-latest, cc: "cl.exe", cxx: "cl.exe", chealpix: "OFF", icon: "Windows"}
- { name: "Ubuntu gcc", os: ubuntu-latest, cc: "gcc", cxx: "g++", chealpix: "OFF", icon: "Linux" }
- { name: "Ubuntu clang", os: ubuntu-latest, cc: "clang", cxx: "clang++", chealpix: "OFF", icon: "Linux" }
- { name: "MacOS clang", os: macos-latest, cc: "clang", cxx: "clang++", chealpix: "OFF", icon: "Apple" }
# Testing for Healpix. Deprecated, will be removed without notice. Unsupported OS are disabled.
# - { name: "Windows MSVC Chealpix", os: windows-latest, cc: "cl.exe", cxx: "cl.exe", chealpix: "ON", icon: "Windows"}
- { name: "Ubuntu gcc Chealpix", os: ubuntu-latest, cc: "gcc", cxx: "g++", chealpix: "ON", icon: "Linux" }
- { name: "Ubuntu clang Chealpix", os: ubuntu-latest, cc: "clang", cxx: "clang++", chealpix: "ON", icon: "Linux" }
# - { name: "MacOS clang Chealpix", os: macos-latest, cc: "clang", cxx: "clang++", chealpix: "ON", icon: "Apple" }
steps:
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Add msbuild to PATH
uses: seanmiddleditch/gha-setup-vsdevenv@master
if: runner.os == 'Windows'
- name: Prepare directories
run: |
mkdir -p install/
mkdir -p src/opengr
mkdir -p build/opengr
- name: Checkout remote head
uses: actions/checkout@master
with:
path: src/opengr
- name: Configure OpenGR
run: |
cd build/opengr
cmake ../../src/opengr -GNinja -DCMAKE_CXX_COMPILER=${{ matrix.config.cxx }} -DCMAKE_C_COMPILER=${{ matrix.config.cc }} -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../../install/ -DOpenGR_COMPILE_TESTS=TRUE -DENABLE_TIMING=FALSE -DOpenGR_USE_CHEALPIX=${{ matrix.config.chealpix }} -DDL_DATASETS=FALSE
- name: Build OpenGR
run: |
cd build/opengr
cmake --build . --parallel --config Release --target install
- name: Compile unit tests
if: ${{ matrix.config.chealpix == 'OFF'}}
run: |
cd build/opengr
cmake --build . --parallel --config Release --target buildtests
cmake --build . --parallel --config Release --target install
- name: Run unit tests
if: ${{ matrix.config.chealpix == 'OFF'}}
run: |
cd build/opengr
cmake --build . --parallel --config Release --target test