Skip to content

CI

CI #55

Workflow file for this run

name: CI
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches:
- master
schedule:
# On Sundays at 01:00
- cron: '0 1 * * SUN'
workflow_dispatch:
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
paraview_version: [ v5.9.1, v5.10.1, latest ]
container: kitware/paraview-for-ci:${{ matrix.paraview_version }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: 'source'
fetch-depth: 0
lfs: 'true'
- name: Setup Directories
working-directory: ${{github.workspace}}
run: mkdir build
- name: Install CGAL
run: |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 42D5A192B819C5DA
apt update && apt install -y libcgal-dev
- name: Configure
working-directory: ${{github.workspace}}/build
run: cmake ../source '-DCMAKE_PREFIX_PATH=/paraview/install;/opt/paraview/install/' -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . --parallel 2
- name: Test
working-directory: ${{github.workspace}}/build
run: xvfb-run ctest -j 2 --output-on-failure || xvfb-run ctest -j 1 --rerun-failed -VV