Skip to content

Undo provoke test failure #52

Undo provoke test failure

Undo provoke test failure #52

Workflow file for this run

name: VTK6 C++ CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Install packages
run: sudo apt-get update && sudo apt-get install -y libvtk6-dev cmake libproj-dev
- name: Check installed versions
run: cmake --version
- name: Build VTK-Dicom Library
run: git clone https://github.com/dgobbi/vtk-dicom.git && cd vtk-dicom && mkdir build && cd build && cmake .. && make
- name: Configure Simple
run: mkdir build && cd build && cmake -DBUILD_GUI=OFF -DUSE_VTK_DICOM=OFF -DTESTDICOM2MESH=ON -DTESTDICOM2MESHLIB=ON ..
- name: Build D2M Simple
run: cd build && make
- name: Run Test Simple
run: ./build/lib/runLibTests && ./build/dicom2mesh/runD2MTests
- name: Run Smoke Test Dicom2Mesh
run: |
if ./build/dicom2mesh/dicom2mesh -h | grep -q "How to use dicom2Mesh:"; then
echo "Smoke test passed: Application started successfully."
else
echo "Smoke test failed: Expected output not found."
exit 1
fi
- name: Clean
run: rm -rf build
- name: Configure VTK_DICOM
run: mkdir build && cd build && cmake -DBUILD_GUI=OFF -DTESTDICOM2MESH=ON -DTESTDICOM2MESHLIB=ON -DUSE_VTK_DICOM=ON ..
- name: Build D2M VTK_DICOM
run: cd build && make
- name: Run Test VTK_DICOM
run: ./build/lib/runLibTests && ./build/dicom2mesh/runD2MTests
- name: Run Smoke Test VTK_DICOM Dicom2Mesh
run: |
if ./build/dicom2mesh/dicom2mesh -h | grep -q "How to use dicom2Mesh:"; then
echo "Smoke test passed: Application started successfully."
else
echo "Smoke test failed: Expected output not found."
exit 1
fi